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
Since the sentiment is that we do not want to get rid of handling PHP side because of users who have javascript disabled, there is an easy way to support both. All that needs to be done is to modify user::format_date to output a slightly different timestamp string, something like:
Code: Select all
'<span class="localtime">' . (generated time) . '<span class="gmtime" style="display: none;">' . $gmepoch . '</span></span>'
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:
http://exreaction.lithiumstudios.org/phpBB3_time/
The only thing that would be left to do is to build a conversion table from the php format string to a javascript format string so that the date is displayed in the format the user selected.