Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

DateFormatter fails to parse specific date

Im having a weird issue related to parsing String to Date in swift.
This is the code I put in the Playground:

screenshot from Playgroud.swift

Im wondering why DateFormatter fails to parse only the 28 May 1972 date?
Does anyone have an idea?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Your name suggests that you are living in Italy.

In Italy daylight saving time changed on May 28, 1972 at 00:00.

This hour haven’t existed because the clocks were turned forward to 01:00.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading