SMF Development > Next SMF Discussion

timezone warnings on PHP 5.3

<< < (2/2)

MrPhil:
Most hosts are going to have their servers at GMT or  the timezone they're physically located in (or one common timezone if spread across multiple timezones). I think that what 青山 素子* was suggesting is that hosts remember to set their default PHP timezone (via system php.ini or equivalent) to the same timezone. It's still up to customers to override that with their desired timezone name in their application, but at least we wouldn't be getting these error messages if they forget to do so, just the wrong time (and/or DST rules, no different from leaving the offset at 0).

The best of all worlds would be on PHP 5.1+ systems to remind users to select a proper timezone (on 5.2+ using the built-in list of names), while continuing to allow hour offsets only for pre-5.1 systems. And of course, members get to choose their own timezone, and PHP upgrades to 5.1+ generate a reminder to the administrator to set the default timezone and encourage members to set their own.

* How about restricting the alphabet for member names to ASCII? I don't have CJK font sets installed, so this name always comes out as UTF-16 codes in boxes!

青山 素子:

--- Quote from: MrPhil on July 04, 2011, 01:16:45 PM ---* How about restricting the alphabet for member names to ASCII? I don't have CJK font sets installed, so this name always comes out as UTF-16 codes in boxes!

--- End quote ---

What about using a proper modern OS that can support Unicode names directly? (If you're using broken Windows, install International language support.)

Navigation

[0] Message Index

[*] Previous page

Go to full version