Comment 6 for bug 548311

Revision history for this message
Darryl Hamilton (lordp) wrote :

I'm not sure if this is the right way to handle this, or if it will work in Mahara, but in a Ruby on Rails site that uses time zones, all date/time information is stored in the database in UTC.

Conversion to a user's timezone is done before it is displayed, and all dates entered by a user are assumed to be in their time zone, and are converted to UTC before storing in the database.

For anonymous/public access, perhaps a site default can be used?