CVS update: php3/functions
| From: | fmk | Date: | Tue, 15 Jun 1999 17:09:36 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6991@lists.php.net to get a copy of this message | ||
Date: Tuesday June 15, 1999 @ 13:09
Author: fmk
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv13065
Modified Files:
datetime.c
Log Message:
Adding missing ;
Index: php3/functions/datetime.c
diff -u php3/functions/datetime.c:1.62 php3/functions/datetime.c:1.63
--- php3/functions/datetime.c:1.62 Tue Jun 15 08:45:22 1999
+++ php3/functions/datetime.c Tue Jun 15 13:09:36 1999
@@ -30,7 +30,7 @@
*/
-/* $Id: datetime.c,v 1.62 1999/06/15 12:45:22 sas Exp $ */
+/* $Id: datetime.c,v 1.63 1999/06/15 17:09:36 fmk Exp $ */
#ifdef THREAD_SAFE
@@ -109,7 +109,10 @@
#endif
tn = localtime(&t);
memcpy(&ta,tn,sizeof(struct tm));
- ta.tm_isdst = -1;
+ if (gm)
+ ta.tm_isdst = 0;
+ else
+ ta.tm_isdst = -1;
switch(arg_count) {
case 6:
@@ -140,7 +143,7 @@
#if HAVE_TM_GMTOFF
gmadjust=tn->tm_gmtoff;
#else
- gmadjust=timezone
+ gmadjust=timezone;
#endif
gmadjust_hour = gmadjust / 3600;
gmadjust_min = gmadjust - gmadjust_hour * 3600;