CVS update: php3/functions
| From: | jah | Date: | Mon, 07 Jun 1999 17:08:24 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6661@lists.php.net to get a copy of this message | ||
Date: Monday June 7, 1999 @ 13:08
Author: jah
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv1767/functions
Modified Files:
datetime.c
Log Message:
Fix for 't' parameter in date().
Index: php3/functions/datetime.c
diff -u php3/functions/datetime.c:1.54 php3/functions/datetime.c:1.55
--- php3/functions/datetime.c:1.54 Mon Jun 7 11:43:23 1999
+++ php3/functions/datetime.c Mon Jun 7 13:08:19 1999
@@ -30,7 +30,7 @@
*/
-/* $Id: datetime.c,v 1.54 1999/06/07 15:43:23 cmv Exp $ */
+/* $Id: datetime.c,v 1.55 1999/06/07 17:08:19 jah Exp $ */
#ifdef THREAD_SAFE
@@ -470,7 +470,7 @@
strcat(return_value->value.str.val, tmp_buff);
break;
case 't': /* days in current month */
- sprintf(tmp_buff, "%2d", phpday_tab[isleap(ta->tm_year)][ta->tm_mon] );
+ sprintf(tmp_buff, "%2d", phpday_tab[isleap((ta->tm_year+1900))][ta->tm_mon] );
strcat(return_value->value.str.val, tmp_buff);
break;
case 'Z': /* timezone offset in seconds */