Bug 2902 - JavaScript relative date displays suck for > 2 years ago
Summary: JavaScript relative date displays suck for > 2 years ago
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: urgent bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-14 06:34 UTC by Dirkjan Ochtman
Modified: 2012-05-13 05:04 UTC (History)
5 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirkjan Ochtman 2011-07-14 06:34 UTC
Offending changeset:

changeset:   14046:b24e5a708fad
user:        Benoit Allard <benoit@aeteurope.nl>
date:        Thu Apr 28 17:02:39 2011 +0200
summary:     web: Made elapsed time calculation dynamic (javascript).

Shown in hgweb after that cset:

	Sat Mar 04 17:09:02 2006 +0000 (2006-2-4)

I.e., what should be 2006-03-04 is shown as 2006-2-4.
Comment 1 Matt Mackall 2011-07-14 10:08 UTC
Regression -> urgent

(I'd like to release a 1.9.1 shortly, btw)
Comment 2 Benoît Allard 2011-07-15 01:58 UTC
I've got that +1 and '0' solved, I have one remaining question though ...

Would you expect the UTC date to appear there or the local date ?

Local date:

Wed Jul 11 19:56:16 2007 -0300 (2007-07-12)
Sat May 12 00:41:30 2007 +0200 (2007-05-12)

UTC date:

Wed Jul 11 19:56:16 2007 -0300 (2007-07-11)
Sat May 12 00:41:30 2007 +0200 (2007-05-11)
Comment 3 Benoît Allard 2011-07-15 02:10 UTC
util.shortdate gives a localized one, I'll do the same.
Comment 4 HG Bot 2011-07-15 12:00 UTC
Fixed by http://selenic.com/repo/hg/rev/2e54387976d4
Benoit Allard <benoit@aeteurope.nl>
web: Output a correct date in short format (issue2902)

(please test the fix)
Comment 5 Bugzilla 2012-05-12 09:21 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:21 EDT  ---

This bug was previously known as _bug_ 2902 at http://mercurial.selenic.com/bts/issue2902