Skip to content

Commit c411457

Browse files
author
Derick Rethans
committed
- The incoming TS is GMT... but the hole filler wants local time so we
have to convert it. - Change e-mail address
1 parent 2492892 commit c411457

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

ext/date/lib/dow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

ext/date/lib/parse_date.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
| obtain it through the world-wide-web, please send a note to |
1515
| license@php.net so we can mail you a copy immediately. |
1616
+----------------------------------------------------------------------+
17-
| Authors: Derick Rethans <dr@ez.no> |
17+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1818
+----------------------------------------------------------------------+
1919
*/
2020

ext/date/lib/parse_date.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

ext/date/lib/parse_tz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

ext/date/lib/resource/parse_date.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

ext/date/lib/timelib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

ext/date/lib/timelib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

ext/date/lib/timelib_structs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

@@ -128,7 +128,7 @@ typedef struct timelib_time {
128128
int z; /* GMT offset in minutes */
129129
char *tz_abbr; /* Timezone abbreviation (display only) */
130130
timelib_tzinfo *tz_info; /* Timezone structure */
131-
unsigned int dst; /* Flag if we were parsing a DST zone */
131+
signed int dst; /* Flag if we were parsing a DST zone */
132132
timelib_rel_time relative;
133133

134134
timelib_sll sse; /* Seconds since epoch */

ext/date/lib/tm2unixtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

ext/date/lib/unixtime2tm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

ext/date/php_date.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

@@ -119,7 +119,7 @@ PHP_FUNCTION(strtotime)
119119
snprintf(initial_ts, 24, "@%lu", preset_ts);
120120
t = timelib_strtotime(initial_ts);
121121
timelib_update_ts(t, tzi);
122-
timelib_unixtime2gmt(now, t->sse);
122+
timelib_unixtime2local(now, t->sse, tzi);
123123
timelib_time_dtor(t);
124124
efree(initial_ts);
125125
} else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s", &times, &time_len) != FAILURE) {

ext/date/php_date.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| license@php.net so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Authors: Derick Rethans <dr@ez.no> |
15+
| Authors: Derick Rethans <derick@derickrethans.nl> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

0 commit comments

Comments
 (0)