malcommac / SwiftDate

🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
MIT License
7.61k stars 767 forks source link

When the region in Thailand, the date calculate incorrect #794

Open PacoPacoPakitor opened 2 years ago

PacoPacoPakitor commented 2 years ago

For example, if their date is "2022-02-27T16:00:00.000Z", after will covert to "1479-02-27 16:00:00.000". It's should not be reduced with 543 years, It's should be plus with 543years. Can you help to check this? Thx

vuptt commented 1 year ago

You're using Buddhist calendar on the iPhone. Here is the detail about this https://forums.swift.org/t/checking-the-local-season/40796/3