mirror of
https://github.com/flarum/framework.git
synced 2025-03-01 05:16:25 +08:00

MySQL's UNIX_TIMESTAMP function interprets the date using MySQL's configured timezone, which we don't want (may be misconfigured etc). Instead, now we do the conversion to a timestamp on the PHP side. Then JavaScript is given the offset between UTC and the configure timezone so it can work out how to display the data.