Skip to content

Commit

Permalink
Update timelib to 2020.02
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Aug 31, 2020
1 parent c9b5a29 commit 8ec9065
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
3 changes: 2 additions & 1 deletion ext/date/lib/parse_date.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Generated by re2c 2.0.3 on Mon Aug 31 11:54:55 2020 */
/* Generated by re2c 2.0.3 on Mon Aug 31 12:21:15 2020 */
#line 1 "parse_date.re"
/*
* The MIT License (MIT)
Expand Down Expand Up @@ -22456,6 +22456,7 @@ static const timelib_format_specifier default_format_map[] = {
{'F', TIMELIB_FORMAT_TEXTUAL_MONTH_FULL},
{'e', TIMELIB_FORMAT_TIMEZONE_OFFSET},
{'P', TIMELIB_FORMAT_TIMEZONE_OFFSET},
{'p', TIMELIB_FORMAT_TIMEZONE_OFFSET},
{'T', TIMELIB_FORMAT_TIMEZONE_OFFSET},
{'O', TIMELIB_FORMAT_TIMEZONE_OFFSET},
{' ', TIMELIB_FORMAT_WHITESPACE},
Expand Down
1 change: 1 addition & 0 deletions ext/date/lib/parse_date.re
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,7 @@ static const timelib_format_specifier default_format_map[] = {
{'F', TIMELIB_FORMAT_TEXTUAL_MONTH_FULL},
{'e', TIMELIB_FORMAT_TIMEZONE_OFFSET},
{'P', TIMELIB_FORMAT_TIMEZONE_OFFSET},
{'p', TIMELIB_FORMAT_TIMEZONE_OFFSET},
{'T', TIMELIB_FORMAT_TIMEZONE_OFFSET},
{'O', TIMELIB_FORMAT_TIMEZONE_OFFSET},
{' ', TIMELIB_FORMAT_WHITESPACE},
Expand Down
6 changes: 3 additions & 3 deletions ext/date/lib/parse_iso_intervals.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Generated by re2c 2.0.3 on Mon Aug 31 11:54:50 2020 */
/* Generated by re2c 2.0.3 on Mon Aug 31 12:21:19 2020 */
#line 1 "parse_iso_intervals.re"
/*
* The MIT License (MIT)
Expand Down Expand Up @@ -309,8 +309,8 @@ static int scan(Scanner *s)
nr = timelib_get_unsigned_nr(&ptr, 12);
switch (*ptr) {
case 'Y': s->period->y = nr; break;
case 'W': s->period->d = nr * 7; break;
case 'D': s->period->d = nr; break;
case 'W': s->period->d += nr * 7; break;
case 'D': s->period->d += nr; break;
case 'H': s->period->h = nr; break;
case 'S': s->period->s = nr; break;
case 'M':
Expand Down
4 changes: 2 additions & 2 deletions ext/date/lib/parse_iso_intervals.re
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ isoweek = year4 "-"? "W" weekofyear;
nr = timelib_get_unsigned_nr(&ptr, 12);
switch (*ptr) {
case 'Y': s->period->y = nr; break;
case 'W': s->period->d = nr * 7; break;
case 'D': s->period->d = nr; break;
case 'W': s->period->d += nr * 7; break;
case 'D': s->period->d += nr; break;
case 'H': s->period->h = nr; break;
case 'S': s->period->s = nr; break;
case 'M':
Expand Down
6 changes: 3 additions & 3 deletions ext/date/lib/timelib.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ typedef struct _timelib_tzdb {
# define timelib_free free
#endif

#define TIMELIB_VERSION 202001
#define TIMELIB_EXTENDED_VERSION 20201001
#define TIMELIB_ASCII_VERSION "2020.01"
#define TIMELIB_VERSION 202002
#define TIMELIB_EXTENDED_VERSION 20202001
#define TIMELIB_ASCII_VERSION "2020.02"

#define TIMELIB_NONE 0x00
#define TIMELIB_OVERRIDE_TIME 0x01
Expand Down
2 changes: 1 addition & 1 deletion ext/date/tests/DateTimeZone_getLocation.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ Array
[country_code] => %s
[latitude] => %f
[longitude] => %f
[comments] => %s
[comments] => %S
)
2 changes: 1 addition & 1 deletion ext/date/tests/big_year.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ var_dump(date("r", $t));

echo "OK\n";
?>
--EXPECT--
--EXPECTF--
string(%d) "%s, 01 Jan 2922770265 00:00:00 -0500"
OK

0 comments on commit 8ec9065

Please sign in to comment.