Closed Bug 829213 Opened 11 years ago Closed 6 years ago

[B2G][E-Mail]E-mail date: E-mails that were sent two days ago are showing that they were received yesterday.

Categories

(Firefox OS Graveyard :: Gaia::E-Mail, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jzimbrick, Unassigned)

Details

(Whiteboard: testrun 4)

Attachments

(2 files)

Test Case #: 2587
 
Repro Steps:

1. Update Unagi device to build 20130104070203.
2. Open the e-mail app.
3. Add an e-mail account that received mail two days before the current date.
4. Observe that e-mails from two days ago are being displayed as received yesterday.

Actual Results:

E-mails sent two days ago are being displayed in the e-mail app as being received yesterday.

Expected Results:

E-mails sent two days ago are being displayed as received two days ago.

Notes:

This issue occurred with a gmail IMAP account.

Some e-mails that were received two days ago are being properly displayed as such.

Total conjecture, but I'm thinking that maybe instead of using a calendar day to determine when a message was received, that the e-mail app is calculating days by 24 hours since the e-mail was received.

So if an e-mail was received 47 hours ago, it will display yesterday, but if it was received 48 or after, it displays two days ago.
Thanks for the direct link; moztrap is not super easy to navigate, so that is very helpful!

We are using the common l10n fromNow/prettyDate logic, which does indeed operate on time deltas relative to now rather than on specific date comparisons.  The function is located here:
https://github.com/mozilla-b2g/gaia/blob/master/shared/js/l10n_date.js#L82

This bug should be probably be moved to be against the shared code with the UX team making a specific call about how it should work.  I think we used to have a spec under 'Patterns' on the wiki in terms of pretty date formatting, but it got removed.
not able to reproduce it on "Unagi"
Build ID:20130115070201
Kernel Dec 5
Issue is still occurring in build 20130117070201 on an Unagi device.
Issue repros.  Dates on email are still showing incorrectly.  For today it shows correct but anything after today shows incorrectly

Build ID: 20130130070201
Kernel: Dec 5
Gecko  http://hg.mozilla.org/releases/mozilla-b2g18/rev/4593f3e765eb
Gaia   f7f5a0cd17e3d04308cc5850b254947e127122b9
Whiteboard: testrun 2 → testrun 4
I am not seeing this issue comparing my gmail account through the web browser on my desktop to my gmail account in the email app.

For all that can still reproduce the issue, can you please follow the instructions to get the logcat information?

https://wiki.mozilla.org/Gaia/Email/RequiredBugInfo
Flags: needinfo?(jcouassi)
Flags: needinfo?(jzimbrick)
I just checked this again, still seeing this issue occurring.

I'm showing several that are displaying as being from the wrong day, emails from the same day at different times where one displays yesterday and the other displays two days ago, an email displaying being sent 8 days ago, when it was actually received 9 days ago, etc.

It seems to be happening the way I had mentioned in the initial notes.  Rather than counting by calender days, it counts be 24 hour periods since it was received.

  An easy way to test this issue would be to send a bunch of emails throughout the day with the date and time in the title. 

 For an example, one sent today right now 3:33 PM 02/13/13 won't be displayed as yesterday until the user checks their email after 3:33 PM on 02/14/13, and won't be displayed as being received two days ago until 3:33 PM the next day.

This was a gmail.com account with the following build:

Build: 20130213071150
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/6fec2938ac1e
Gaia: 07aa79239ced90a7ca0e8da8829fbcb330c42e9f
Kernel: Dec 5

Also attached a logcat from when I was accessing the email app.
Flags: needinfo?(jzimbrick)
Issue repros on 
Unagi Build ID: 20130221070203
Kernel Date: Dec 5
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/effe37a77f18
Gaia: bb633c6f2deb829b2f3d5b9e7bac7fa24467d02a

Looking at email from todays date shows correctly however if you look a couple days later you will see it shows it was received at a incorrect time/date.  Looking at some of the email sent three days ago show as sent two days ago.
Flags: needinfo?(jcouassi)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: