Skip to content

Commit

Permalink
Update tzinfo file, generated from Java 21 - tzdata 2023c (#603)
Browse files Browse the repository at this point in the history
* Update tzinfo file, generated from Java 21 - tzdata 2023c

* Update tzinfo with correct historical offset changes

* Include timezones from Java ZoneId and TimeZone classes
  • Loading branch information
erichards97 authored Dec 7, 2023
1 parent c44fe1b commit ed8474b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions code/common/timezone.q
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ gd:gl[default]
\
\d .
/ To recreate tzinfo from tzinfo.csv
t:("SPJJ";enlist ",")0:`:tzinfo.csv;
update gmtOffset:`timespan$1000000000*gmtOffset,dstOffset:`timespan$1000000000*dstOffset from `t;
update adjustment:gmtOffset+dstOffset from `t;
update localDateTime:gmtDateTime+adjustment from `t;
`gmtDateTime xasc `t;
update `g#timezoneID from `t;
t:("SPJ";enlist ",")0:`:tzinfo.csv;
t: delete offset from update adjustment:`timespan$1000000000*offset from t;
t: update localDateTime:gmtDateTime+adjustment from t;
t: `gmtDateTime xasc t;
t: update `g#timezoneID from t;
`:tzinfo set t; / save file for easy distribution
Binary file modified config/tzinfo
Binary file not shown.

0 comments on commit ed8474b

Please sign in to comment.