CVS update: php3/functions

From: Date: Mon, 07 Jun 1999 21:01:26 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-6683@lists.php.net to get a copy of this message
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 */

« previous php.dev (#6683) next »