Thread date off by one day

Bug #1220043 reported by Dennis O'Flaherty
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
messaging-app (Ubuntu)
Fix Released

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

description: updated
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:messaging-app at revision 30, scheduled for release in messaging-app, milestone Unknown

Changed in messaging-app:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package messaging-app - 0.1+13.10.20130917-0ubuntu1

messaging-app (0.1+13.10.20130917-0ubuntu1) saucy; urgency=low

  [ Dennis O'Flaherty ]
  * Format date properly so friendlyDay() can return the right string.
    (LP: #1220043)

  [ Tiago Salem Herrmann ]
  * invoke popups also on pressAndHold.
  * add support for contacts quick search this branch needs the history
    service from this MR:
    service/fix-threadForParticipants/+merge/185547. (LP: #1224944)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 32
 -- Ubuntu daily release <email address hidden> Tue, 17 Sep 2013 12:57:10 +0000

Changed in messaging-app (Ubuntu):
status: New → Fix Released
Changed in messaging-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.