summaryrefslogtreecommitdiff
path: root/ext/standard/datetime.c
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2001-01-17 21:09:16 +0000
committerAndrei Zmievski <andrei@php.net>2001-01-17 21:09:16 +0000
commitccd94c48317080231d5a4def82c5869ca83e24d0 (patch)
tree4784b6120dd3557e544b3600a06264149ca18fe4 /ext/standard/datetime.c
parent457888ac449f247278d6d6da8603cce2490c85d4 (diff)
downloadphp-git-ccd94c48317080231d5a4def82c5869ca83e24d0.tar.gz
@- Changed 'Z' flag to date() to always return timezone offset with
@ negative sign if it's west of UTC. (Andrei)
Diffstat (limited to 'ext/standard/datetime.c')
-rw-r--r--ext/standard/datetime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c
index dda3cde0e2..dfb83e04ba 100644
--- a/ext/standard/datetime.c
+++ b/ext/standard/datetime.c
@@ -441,7 +441,7 @@ php_date(INTERNAL_FUNCTION_PARAMETERS, int gm)
#if HAVE_TM_GMTOFF
sprintf(tmp_buff, "%ld", ta->tm_gmtoff);
#else
- sprintf(tmp_buff, "%ld", ta->tm_isdst ? timezone - 3600 : timezone);
+ sprintf(tmp_buff, "%ld", ta->tm_isdst ? -(timezone - 3600) : -timezone);
#endif
strcat(return_value->value.str.val, tmp_buff);
break;