One of my auto backup scripts to S3 suddently stopped working with the error: [RequestTimeTooSkewed] The difference between the request time and the current time is too large. After a bit of digging around I noticed on the server if I issued the command: date I would get a wildly out of sync time. To [...]
Real Life Tech Problems Solved.
Was adding a date from a service to MySql using PHP and needed something to convert the PHP string into something MySql could use for a DateTime field. This worked a treat: $reviewDateSql = date('Y-m-d H:i:s',strtotime("$reviewDate"));