Using PHP requires that users update their timezone setting at least once if they want the correct time displayed (assuming it would no longer be required for users to change DST twice a year with 3.1)
Using PHP means that guests are never shown local time
- Code: Select all
'<span class="localtime">' . (generated time) . '<span class="gmtime" style="display: none;">' . $gmepoch . '</span></span>'
Then, with a bit of jQuery, we grab the gmtime, format it to local time, then replace the generated time with the local time.
This would only require three edits in two files, the user class and the header, and would not cause any problems for styles or mods that are not updated (it would just show the time exactly as it does now).
I've setup a quick test of it here: