Opened 8 years ago

Closed 5 years ago

#14 closed task (fixed)

Timezone support

Reported by: borja Owned by: borja
Priority: major Milestone: OpenWorkouts 0.1
Component: workouts Keywords:
Cc:

Description

Right now, when we load data from a GPX file, it is in UTC/GMT. We do not show this anywhere in the app, and we should improve this a bit.

First iteration: Save datetime objects as objects with no timezone, then display them all in UTC/GMT, telling the user about it.

Second iteration: Allow users to set their timezone, then display dates and times in that timezone for that user.

Change History (6)

comment:1 Changed 8 years ago by borja

  • Milestone changed from milestone1 to milestone 0.1

Milestone renamed

comment:2 Changed 8 years ago by borja

  • Milestone changed from milestone 0.1 to OpenWorkouts 0.1

Milestone renamed

comment:3 Changed 5 years ago by borja

  • Owner set to borja
  • Status changed from new to accepted

comment:4 Changed 5 years ago by borja

In patch [1/OpenWorkouts-current] I've already made one step to get this done. All datetime objects stored in the database are now timezone-aware, set by default to UTC.

comment:5 Changed 5 years ago by borja

From now on, all datetime objects will be in UTC/GMT, then, we will allow users to set which time zone they are in, and we will use that info when displaying datetime objects.

For example, for users in CET, we will format the UTC-based datetime objects before printing/displayiing, changing to the CET timezone.

comment:6 Changed 5 years ago by borja

  • Resolution set to fixed
  • Status changed from accepted to closed

Finished first implementation here: [22/OpenWorkouts-current].

Now users can set their location/timezone and all datetimes are formatted according to it.

Note: See TracTickets for help on using tickets.