Thread date off by one day
Bug #1220043 reported by
Dennis O'Flaherty
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
messaging-app |
Fix Released
|
Undecided
|
Unassigned | ||
messaging-app (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
A message thread in MainPage gets marked as "Yesterday," even if the most recent message was from today, since I am in GMT-0400. Threads from previous days are marked as being a day earlier than they were actually sent. The messages themselves have the correct time/date attached to them.
The problem appears to be caused by the Date constructor's parsing:
new Date("2013-09-02") // assumes UTC/GMT time zone
new Date("2013/09/02")) // assumes local time zone
and eventDate (referenced in MainPage.qml:63) is stored in the former format.
Related branches
lp:~doflah/messaging-app/fix_thread_timezone
- PS Jenkins bot: Approve (continuous-integration)
- Tiago Salem Herrmann (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedsrc/qml/MainPage.qml (+1/-1)
description: | updated |
Changed in messaging-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix committed into lp:messaging-app at revision 30, scheduled for release in messaging-app, milestone Unknown