Fixed an issue with DateTime formatting and MySQL 5.6 (finally getting around to committing this, a year later...)