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

New Zealand - ETimeZoneInvalid #35

Closed ertankucukoglu closed 3 years ago

ertankucukoglu commented 3 years ago

Hello,

New Zealand could not be identified as a timezone using a code line below with current version of the sources.

PickupDateTime := TBundledTimeZone.GetTimeZone(FData.bookings[I].pickup_date_time_zone).ToLocalTime(FData.bookings[I].pickup_date_time);

I could not clearly understand reason of the source as it is using 2020d version of the time zone database.

Stack trace is like below: image

Any help is appreciated.

Thanks & Regards, Ertan

pavkam commented 3 years ago

Hello,

There is no such time zone in the Tzdb. I think you want 'Pacific/Auckland'.

Let me know if that works, Alex.

On Wed, Dec 16, 2020, 19:25 ertankucukoglu notifications@github.com wrote:

Hello,

New Zealand could not be identified as a timezone using a code line below with current version of the sources.

PickupDateTime := TBundledTimeZone.GetTimeZone(FData.bookings[I].pickup_date_time_zone).ToLocalTime(FData.bookings[I].pickup_date_time);

I could not clearly understand reason of the source as it is using 2020d version of the time zone database.

Stack trace is like below: [image: image] https://user-images.githubusercontent.com/14805520/102396435-810f6180-3fed-11eb-9b32-ec9f0e1ce047.png

Any help is appreciated.

Thanks & Regards, Ertan

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pavkam/tzdb/issues/35, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABX44TJS24A6NTYXNLKHPY3SVECTRANCNFSM4U6PD5SA .

ertankucukoglu commented 3 years ago

Hello,

It seems web service I am using sending wrong timezone name. I will see if they can fix that. I sincerely hope that they can.

Sorry for the noise.

Thanks & Regards, Ertan