Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

Brazilian SUMMERTIME bug. #41

Open
loverde-co opened this issue Oct 4, 2017 · 3 comments
Open

Brazilian SUMMERTIME bug. #41

loverde-co opened this issue Oct 4, 2017 · 3 comments

Comments

@loverde-co
Copy link

loverde-co commented Oct 4, 2017

Hi there, is there a way to fix your method formated() and other places that you save Date to fix the SUMERTIME cases ?
Cause, October 15 change from 00:00:00 to 14 23:00:00.
Could it be fix to not consider hour on your calendar ?
Thanks

@loverde-co loverde-co changed the title October with bug. Brazilian SUMMERTIME bug. Oct 6, 2017
@whoislyuboanyway
Copy link
Contributor

Wait for this pull request to be merged and try again :)
#48

@loverde-co
Copy link
Author

Thanks!

@loverde-co
Copy link
Author

loverde-co commented Sep 15, 2018

This merged couldn't help, still getting summer time wrong date yet.
And another thing happened. On iOS 11.x this bug occur on your re-formating function here:

func formated(withFormat format: String = "yyyy/MM/dd") -> Date? {
        let formatter: DateFormatter = .init()
        formatter.dateFormat = format
        let dateString = formatter.string(from: self)
        return formatter.date(from: dateString)
    }

Always when you use this code, date back to yesterday. Every time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants