From 4a1def214bb581e3ccc5d1b11f89118cf5e913f9 Mon Sep 17 00:00:00 2001 From: "edward.lee@engineering.uiuc.edu" Date: Mon, 17 Dec 2007 11:08:11 -0800 Subject: [PATCH] Bug 408696 - Don't show leading 0 for download dates. r=mconnor, a1.9=mconnor --- toolkit/mozapps/downloads/content/downloads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/mozapps/downloads/content/downloads.js b/toolkit/mozapps/downloads/content/downloads.js index 5fa53f1af3b2..de71031d0d4f 100644 --- a/toolkit/mozapps/downloads/content/downloads.js +++ b/toolkit/mozapps/downloads/content/downloads.js @@ -987,7 +987,7 @@ function updateTime(aItem) } else { // Download must have been from some time ago.. show month/day let month = end.toLocaleFormat("%B"); - let date = end.toLocaleFormat("%d"); + let date = end.toLocaleFormat("%e").replace(/\s+/g, ""); dateTime = replaceInsert(gStr.monthDate, 1, month); dateTime = replaceInsert(dateTime, 2, date); }