cvs: php4 /ext/standard datetime.c

From: Date: Wed, 17 Jan 2001 21:09:16 +0000
Subject: cvs: php4 /ext/standard datetime.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3670@lists.php.net to get a copy of this message
andrei Wed Jan 17 13:09:16 2001 EDT Modified files: /php4/ext/standard datetime.c Log: @- Changed 'Z' flag to date() to always return timezone offset with @ negative sign if it's west of UTC. (Andrei) Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.63 php4/ext/standard/datetime.c:1.64 --- php4/ext/standard/datetime.c:1.63 Sat Jan 13 21:37:33 2001 +++ php4/ext/standard/datetime.c Wed Jan 17 13:09:16 2001 @@ -19,7 +19,7 @@ */ -/* $Id: datetime.c,v 1.63 2001/01/14 05:37:33 david Exp $ */ +/* $Id: datetime.c,v 1.64 2001/01/17 21:09:16 andrei Exp $ */ #include "php.h" @@ -441,7 +441,7 @@ #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;

« previous php.cvs (#3670) next »