pavkam / tzdb

Delphi/FPC Time Zone Database
https://www.iana.org/time-zones
BSD 3-Clause "New" or "Revised" License
84 stars 27 forks source link

Update and bug fix #4

Closed mbtaylor1982 closed 6 years ago

mbtaylor1982 commented 6 years ago

1 Update to TZDB 2018C

2 Added Docs generated with PasDoc.. (still needs work)

3 Fixed a bug where GetDisplayName was returning both the std and dst names separated with a slash if it was '/' separated in the Zone FOTMAT column in the TZDB files.

FROM IANA TZDB:

The FORMAT column specifies the usual abbreviation of the time zone name. It can have one of three forms:

a string of three or more characters that are either ASCII alphanumerics, “+”, or “-”, in which case that’s the abbreviation a pair of strings separated by a slash (‘/’), in which case the first string is the abbreviation for the standard time name and the second string is the abbreviation for the daylight saving time name a string containing “%s,” in which case the “%s” will be replaced by the text in the appropriate Rule’s LETTER column

4 Fixed and updated Testcases

pavkam commented 6 years ago

Hi Michael,

Thanks for the updates! I have not had a valid Delphi version for years now. Let me know when you're done so I can verify and commit the changes.

Thanks, Alex.

pavkam commented 6 years ago

Thanks, I have merged it in