derick Fri Jun 17 10:54:00 2005 EDT Modified files: /php-src/ext/date php_date.c php_date.h /php-src/ext/date/lib dow.c parse_date.c parse_tz.c timelib.c timelib.h timelib_structs.h tm2unixtime.c unixtime2tm.c /php-src/ext/date/lib/resource parse_date.re Log: - The incoming TS is GMT... but the hole filler wants local time so we have to convert it. - Change e-mail address
http://cvs.php.net/diff.php/php-src/ext/date/php_date.c?r1=1.9&r2=1.10&ty=u Index: php-src/ext/date/php_date.c diff -u php-src/ext/date/php_date.c:1.9 php-src/ext/date/php_date.c:1.10 --- php-src/ext/date/php_date.c:1.9 Thu Jun 16 19:12:08 2005 +++ php-src/ext/date/php_date.c Fri Jun 17 10:53:56 2005 @@ -12,11 +12,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: php_date.c,v 1.9 2005/06/16 23:12:08 sniper Exp $ */ +/* $Id: php_date.c,v 1.10 2005/06/17 14:53:56 derick Exp $ */ #include "php.h" #include "php_streams.h" @@ -119,7 +119,7 @@ snprintf(initial_ts, 24, "@%lu", preset_ts); t = timelib_strtotime(initial_ts); timelib_update_ts(t, tzi); - timelib_unixtime2gmt(now, t->sse); + timelib_unixtime2local(now, t->sse, tzi); timelib_time_dtor(t); efree(initial_ts); } else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s", ×, &time_len) != FAILURE) { http://cvs.php.net/diff.php/php-src/ext/date/php_date.h?r1=1.2&r2=1.3&ty=u Index: php-src/ext/date/php_date.h diff -u php-src/ext/date/php_date.h:1.2 php-src/ext/date/php_date.h:1.3 --- php-src/ext/date/php_date.h:1.2 Thu Jun 16 18:03:04 2005 +++ php-src/ext/date/php_date.h Fri Jun 17 10:53:56 2005 @@ -12,11 +12,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: php_date.h,v 1.2 2005/06/16 22:03:04 sniper Exp $ */ +/* $Id: php_date.h,v 1.3 2005/06/17 14:53:56 derick Exp $ */ #ifndef PHP_DATE_H #define PHP_DATE_H http://cvs.php.net/diff.php/php-src/ext/date/lib/dow.c?r1=1.4&r2=1.5&ty=u Index: php-src/ext/date/lib/dow.c diff -u php-src/ext/date/lib/dow.c:1.4 php-src/ext/date/lib/dow.c:1.5 --- php-src/ext/date/lib/dow.c:1.4 Fri Jun 17 08:03:03 2005 +++ php-src/ext/date/lib/dow.c Fri Jun 17 10:53:59 2005 @@ -12,11 +12,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: dow.c,v 1.4 2005/06/17 12:03:03 derick Exp $ */ +/* $Id: dow.c,v 1.5 2005/06/17 14:53:59 derick Exp $ */ #include <timelib_config.h> http://cvs.php.net/diff.php/php-src/ext/date/lib/parse_date.c?r1=1.11&r2=1.12&ty=u Index: php-src/ext/date/lib/parse_date.c diff -u php-src/ext/date/lib/parse_date.c:1.11 php-src/ext/date/lib/parse_date.c:1.12 --- php-src/ext/date/lib/parse_date.c:1.11 Fri Jun 17 08:03:03 2005 +++ php-src/ext/date/lib/parse_date.c Fri Jun 17 10:53:59 2005 @@ -14,11 +14,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: parse_date.c,v 1.11 2005/06/17 12:03:03 derick Exp $ */ +/* $Id: parse_date.c,v 1.12 2005/06/17 14:53:59 derick Exp $ */ #include <timelib_config.h> http://cvs.php.net/diff.php/php-src/ext/date/lib/parse_tz.c?r1=1.8&r2=1.9&ty=u Index: php-src/ext/date/lib/parse_tz.c diff -u php-src/ext/date/lib/parse_tz.c:1.8 php-src/ext/date/lib/parse_tz.c:1.9 --- php-src/ext/date/lib/parse_tz.c:1.8 Fri Jun 17 08:03:03 2005 +++ php-src/ext/date/lib/parse_tz.c Fri Jun 17 10:54:00 2005 @@ -12,11 +12,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: parse_tz.c,v 1.8 2005/06/17 12:03:03 derick Exp $ */ +/* $Id: parse_tz.c,v 1.9 2005/06/17 14:54:00 derick Exp $ */ #include <timelib_config.h> http://cvs.php.net/diff.php/php-src/ext/date/lib/timelib.c?r1=1.3&r2=1.4&ty=u Index: php-src/ext/date/lib/timelib.c diff -u php-src/ext/date/lib/timelib.c:1.3 php-src/ext/date/lib/timelib.c:1.4 --- php-src/ext/date/lib/timelib.c:1.3 Fri Jun 17 08:03:03 2005 +++ php-src/ext/date/lib/timelib.c Fri Jun 17 10:54:00 2005 @@ -12,11 +12,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: timelib.c,v 1.3 2005/06/17 12:03:03 derick Exp $ */ +/* $Id: timelib.c,v 1.4 2005/06/17 14:54:00 derick Exp $ */ #include <timelib_config.h> http://cvs.php.net/diff.php/php-src/ext/date/lib/timelib.h?r1=1.3&r2=1.4&ty=u Index: php-src/ext/date/lib/timelib.h diff -u php-src/ext/date/lib/timelib.h:1.3 php-src/ext/date/lib/timelib.h:1.4 --- php-src/ext/date/lib/timelib.h:1.3 Thu Jun 16 19:12:10 2005 +++ php-src/ext/date/lib/timelib.h Fri Jun 17 10:54:00 2005 @@ -12,11 +12,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: timelib.h,v 1.3 2005/06/16 23:12:10 sniper Exp $ */ +/* $Id: timelib.h,v 1.4 2005/06/17 14:54:00 derick Exp $ */ #ifndef __TIMELIB_H__ #define __TIMELIB_H__ http://cvs.php.net/diff.php/php-src/ext/date/lib/timelib_structs.h?r1=1.7&r2=1.8&ty=u Index: php-src/ext/date/lib/timelib_structs.h diff -u php-src/ext/date/lib/timelib_structs.h:1.7 php-src/ext/date/lib/timelib_structs.h:1.8 --- php-src/ext/date/lib/timelib_structs.h:1.7 Thu Jun 16 19:12:10 2005 +++ php-src/ext/date/lib/timelib_structs.h Fri Jun 17 10:54:00 2005 @@ -12,11 +12,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: timelib_structs.h,v 1.7 2005/06/16 23:12:10 sniper Exp $ */ +/* $Id: timelib_structs.h,v 1.8 2005/06/17 14:54:00 derick Exp $ */ #ifndef __TIMELIB_STRUCTS_H__ #define __TIMELIB_STRUCTS_H__ @@ -128,7 +128,7 @@ int z; /* GMT offset in minutes */ char *tz_abbr; /* Timezone abbreviation (display only) */ timelib_tzinfo *tz_info; /* Timezone structure */ - unsigned int dst; /* Flag if we were parsing a DST zone */ + signed int dst; /* Flag if we were parsing a DST zone */ timelib_rel_time relative; timelib_sll sse; /* Seconds since epoch */ http://cvs.php.net/diff.php/php-src/ext/date/lib/tm2unixtime.c?r1=1.8&r2=1.9&ty=u Index: php-src/ext/date/lib/tm2unixtime.c diff -u php-src/ext/date/lib/tm2unixtime.c:1.8 php-src/ext/date/lib/tm2unixtime.c:1.9 --- php-src/ext/date/lib/tm2unixtime.c:1.8 Fri Jun 17 10:11:12 2005 +++ php-src/ext/date/lib/tm2unixtime.c Fri Jun 17 10:54:00 2005 @@ -12,11 +12,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: tm2unixtime.c,v 1.8 2005/06/17 14:11:12 derick Exp $ */ +/* $Id: tm2unixtime.c,v 1.9 2005/06/17 14:54:00 derick Exp $ */ #include <timelib_config.h> #include "timelib.h" http://cvs.php.net/diff.php/php-src/ext/date/lib/unixtime2tm.c?r1=1.7&r2=1.8&ty=u Index: php-src/ext/date/lib/unixtime2tm.c diff -u php-src/ext/date/lib/unixtime2tm.c:1.7 php-src/ext/date/lib/unixtime2tm.c:1.8 --- php-src/ext/date/lib/unixtime2tm.c:1.7 Fri Jun 17 10:11:12 2005 +++ php-src/ext/date/lib/unixtime2tm.c Fri Jun 17 10:54:00 2005 @@ -12,11 +12,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: unixtime2tm.c,v 1.7 2005/06/17 14:11:12 derick Exp $ */ +/* $Id: unixtime2tm.c,v 1.8 2005/06/17 14:54:00 derick Exp $ */ #include <timelib_config.h> http://cvs.php.net/diff.php/php-src/ext/date/lib/resource/parse_date.re?r1=1.10&r2=1.11&ty=u Index: php-src/ext/date/lib/resource/parse_date.re diff -u php-src/ext/date/lib/resource/parse_date.re:1.10 php-src/ext/date/lib/resource/parse_date.re:1.11 --- php-src/ext/date/lib/resource/parse_date.re:1.10 Fri Jun 17 08:03:04 2005 +++ php-src/ext/date/lib/resource/parse_date.re Fri Jun 17 10:54:00 2005 @@ -12,11 +12,11 @@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Authors: Derick Rethans <[EMAIL PROTECTED]> | + | Authors: Derick Rethans <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: parse_date.re,v 1.10 2005/06/17 12:03:04 derick Exp $ */ +/* $Id: parse_date.re,v 1.11 2005/06/17 14:54:00 derick Exp $ */ #include <timelib_config.h>
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php