Skip to content

MySQL-Quoter can now handle datetime values with automatic time-zone conversion

Choose a tag to compare

@rkrx rkrx released this 19 Dec 19:42
· 34 commits to master since this release

You can now use DateTimeInterface objects as parameters in many places (where, having, join, etc). However, this does not apply to Prepared Statements, since here PHP directly handles the passed variables.

Unless otherwise specified, the default time zone set in PHP is used to calculate the database time. It is usually not possible to read usable timezone information from MySQL. The timezone can be specified when instantiating the MySQL object as the timezone parameter either as a string timezone, or as a DateTimeZone object.