Date: 06/07/99
- Next message: cmv: "[PHP-DEV] CVS update: php3/functions"
- Previous message: Andrey Zmievski: "Re: [PHP-DEV] date() stuff"
- Next in thread: cmv: "[PHP-DEV] CVS update: php3/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Monday June 7, 1999 @ 17:01
Author: andrey
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv29989/functions
Modified Files:
datetime.c
Log Message:
GMT offset fix.
Index: php3/functions/datetime.c
diff -u php3/functions/datetime.c:1.56 php3/functions/datetime.c:1.57
--- php3/functions/datetime.c:1.56 Mon Jun 7 13:35:05 1999
+++ php3/functions/datetime.c Mon Jun 7 17:01:26 1999
@@ -30,7 +30,7 @@
*/
-/* $Id: datetime.c,v 1.56 1999/06/07 17:35:05 cmv Exp $ */
+/* $Id: datetime.c,v 1.57 1999/06/07 21:01:26 andrey Exp $ */
#ifdef THREAD_SAFE
@@ -474,7 +474,11 @@
strcat(return_value->value.str.val, tmp_buff);
break;
case 'Z': /* timezone offset in seconds */
+#if HAVE_TM_GMTOFF
sprintf(tmp_buff, "%d", ta->tm_gmtoff );
+#else
+ sprintf(tmp_buff, "%ld", timezone);
+#endif
strcat(return_value->value.str.val, tmp_buff);
break;
case 'L': /* boolean for leapyear */
-- PHP Development Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: cmv: "[PHP-DEV] CVS update: php3/functions"
- Previous message: Andrey Zmievski: "Re: [PHP-DEV] date() stuff"
- Next in thread: cmv: "[PHP-DEV] CVS update: php3/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

