PHP 8.5.0 Alpha 4 available for testing

Voting

: max(six, four)?
(Example: nine)

The Note You're Voting On

alex
15 years ago
It's important to note that a conversion of timezones will be made from the default timezone (date_default_timezone_set()) and the timezone you passed in the constructor (or datefmt_create()).

If you are inserting the dates into your database as UTC time, make sure to set date_default_timezone_set to UTC as well (or any other timezone, but they need to be the same). Once you call ::format, you will get the converted time.

<< Back to user notes page

To Top