GMT
    ~
Advanced Hosters -

blam
: 13.03.2008
: 240
# : Dec 16, 2008 10:28 pm
timestamp.
timezone .

: GMT+5
:
:
date_default_timezone_set("Etc/GMT+5");
echo "\n<br>".date("r",time() ) ; //Tue, 16 Dec 2008 14:13:46 -0500 


GMT -5, .. + - )
timestamp ,

' ' -


: blam ( Dec 16, 2008 10:41 pm), 3 ()

DroX
: 20.04.2006
: 1102
# : Dec 16, 2008 10:37 pm
Cyprus Property Affiliate Program - 1,300 7,000 . RU ENG . ...

samedi
: 17.04.2008
: 214
# : Dec 17, 2008 12:28 am
:
date("r",time());


, date() , time() .

:


date_default_timezone_set(), , .

:
GMT -5, .. + - )

, .

:
The explanation (from the timezone database definition files) why it is like this:

# We use POSIX-style signs in the Zone names and the output abbreviations,
# even though this is the opposite of what many people expect.
# POSIX has positive signs west of Greenwich, but many people expect
# positive signs east of Greenwich. For example, TZ='Etc/GMT+4' uses
# the abbreviation "GMT+4" and corresponds to 4 hours behind UTC
# (i.e. west of Greenwich) even though many people would expect it to
# mean 4 hours ahead of UTC (i.e. east of Greenwich).

The timezones you can specify in PHP come directly from this database, just like it would have been before (in PHP 4 and 5.0). They also do not take care of daylight savingstime either so they're definitely not useful and concise. Nothing in PHP is deprecated either as before you'd do this with the putenv("TZ=xxx") env var which would have given you the exact same result.

However, you should not even be using those - they only exist in the timezone database for backward compatible reasons. Pick one of the Continent/City combinations.


blam
: 13.03.2008
: 240
# : Dec 17, 2008 8:13 am
even though this is the opposite of what many people expect. )
http://bugs.php.net/ .
    ~