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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]