I have an app that includes a navigation history function. I'm trying to find the best way to display the timestamps of history events in the case when the user changes time zones. Each timestamp is of course stored in UTC, and the list is usually grouped by day.
- Always display the timestamp of each history event in local time, and group by days in local time? This means it's possible to generate an event and then travel across a time zone boundary and have it show up in a different day than it did when it was created.
- Display the timestamp of each history event in local time of the time zone it was created in?
- Display the timestamp in local time but group by the calendar day in the time zone where the event was created?
Along with the unix timestamp, each event also stores a
days property which is (
secondsPerDay is 86400. I can group by that to achieve option 3 above.