You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parsing a date string that contains only a date component using the ISO formatter with region specified ignores the passed in region and returns in GMT.
Local region is - gregorian, America/New_York, en_US 2019-05-06.toISODate(region: .local) returns DateInRange in GMT timezone 2019-05-06.toDate(nil, region: .local) returns DateInRegion in correct timezone
Is this intended?
The text was updated successfully, but these errors were encountered:
@malcommac is there any chance this bug is still happening? Even though I am passing the region, region is nil when reaching the method.
Using SwiftDate (6.1.0)
I even tried removing derivated data, cache, all my pods and reinstalling them again, but this behaviour keeps happening. Any idea what might be happening?
Parsing a date string that contains only a date component using the ISO formatter with region specified ignores the passed in region and returns in GMT.
Local region is - gregorian, America/New_York, en_US
2019-05-06.toISODate(region: .local)
returns DateInRange in GMT timezone2019-05-06.toDate(nil, region: .local)
returns DateInRegion in correct timezoneIs this intended?
The text was updated successfully, but these errors were encountered: