Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt Datetime parser to DST timezones (#1524)
When iOS device locale is set to location which uses different timezeons depending on daylight saving time (eg PST and PDT for Los Angeles), then different `gmtoff` applied by `strptime` for 'summer' and 'winter' timestamps. This results in the wrong translation of datetime string into epoch. Adapt code to iOS/MacOS behaviour, where `timegm` updates an input parameter and erases `gmtoff` value: - remove logic to infer the offset using epoch datetime; - store `gmtoff` value before calling `timegm`; - offset result returned from `timegm` by saved `gmtoff`. Relates-To: HERESDK-2568 Signed-off-by: Mykhailo Diachenko <[email protected]>
- Loading branch information