Comment 1 for bug 1187212

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Loaded into gerrit: https://reviews.mahara.org/2257

I think Moodle avoids this whole issue by converting dates to Unix epochs and then storing them as integers.

Since this is only like to happen in power-user situations, it may be enough to just add a $cfg option (and document it in config-defaults.php). According to the MySQL manual, you can provide the timezone as a UTC offset. So perhaps we could auto-detect the web server's timezone in PHP, and then decide what timezone to send based on that?