diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-10-31 11:29:37 -0700 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-01 17:30:14 +0900 |
commit | 469545307f7b688d0b7a15a5cfd33bcecb775123 (patch) | |
tree | 78d0010cc569b5ec4de24666ecefb67149c58d98 /test | |
parent | 51825c04db26c26ad43a76daaecf13a767ce34ea (diff) | |
download | ruby-469545307f7b688d0b7a15a5cfd33bcecb775123.tar.gz |
[ruby/date] Add more timezone abbreviations
This gets the time zone abbreviations from
https://www.timeanddate.com/time/zones/, and adds unambiguous time
zones not already present in zonetab.list. See bin/update-abbr
for the program used.
This regenerates zonetab.h using prereq.mk (requires gperf).
Only one test line is added, just to make sure a new time zone
abbreviation is picked up.
Fixes Ruby Bug 16286
https://github.com/ruby/date/commit/702e8b3033
Diffstat (limited to 'test')
-rw-r--r-- | test/date/test_date_parse.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/date/test_date_parse.rb b/test/date/test_date_parse.rb index e791b2d012..660d083799 100644 --- a/test/date/test_date_parse.rb +++ b/test/date/test_date_parse.rb @@ -24,6 +24,7 @@ class TestDateParse < Test::Unit::TestCase [['Sat Aug 28 02:29:34 JST 02',true],[2002,8,28,2,29,34,'JST',9*3600,6], __LINE__], [['Sat Aug 28 02:29:34 JST 0002',false],[2,8,28,2,29,34,'JST',9*3600,6], __LINE__], [['Sat Aug 28 02:29:34 JST 0002',true],[2,8,28,2,29,34,'JST',9*3600,6], __LINE__], + [['Sat Aug 28 02:29:34 AEST 0002',true],[2,8,28,2,29,34,'AEST',10*3600,6], __LINE__], [['Sat Aug 28 02:29:34 GMT+09 0002',false],[2,8,28,2,29,34,'GMT+09',9*3600,6], __LINE__], [['Sat Aug 28 02:29:34 GMT+0900 0002',false],[2,8,28,2,29,34,'GMT+0900',9*3600,6], __LINE__], |