While scratching my head and doing my typical Google sleuthing I was stumped by a silly exception I was getting from AWS when attempting to upload images to S3 through a virtual machine (Vagrant/Virtualbox).
A client error (RequestTimeTooSkewed) occurred when calling the UploadPart operation: The difference between the request time and the current time is too large
The solution was simple; apparently the virtual machine had lost synch due to idling (…or I honestly don’t know how). So simply resetting the date and updating the default timezones in PHP was sufficient:
Set proper timezone in PHP config(s)
Important: Make sure you set this for *all* your instances of php.ini; /cli/php.ini, /fpm/php.ini, and on and on..
#/etc/php5/fpm/php.ini date.timezone = 'America/New_York'
Auto reset the physical date:
vagrant@ubuntu-14:/$ sudo date -s "30 JUL 2015 9:20:05"