Skip to content

Timezone Issue #76

Description

@fjcaetano

We're using the timer labels as countdowns to deadline dates. However, whenever a deadline is in two different days because of timezone differences, the label shows the incorrect number of days remaining.

Example: If a deadline is set to 2016-06-23 1am (UTC), if the device's timezone is UTC-4, the deadline would end at 2016-06-22 9p.m (UTC-4). And instead of the label showing "0d 2h 27m" it shows "1d 2h 27m".

We were able to fix this issue by removing this line that reads.

        [_dateFormatter setTimeZone:[NSTimeZone timeZoneWithName:@"GMT"]];

However we don't know how this change would impact other users, so we didn't apply for a pull-request yet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions