Bug 408696 - Don't show leading 0 for download dates. r=sdwilsh, a1.9=beltzner

This commit is contained in:
edward.lee@engineering.uiuc.edu 2007-12-21 14:55:56 -08:00
parent 3586680e00
commit 4b3252c169

View File

@ -943,7 +943,8 @@ 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");
// Remove leading 0 by converting the date string to a number
let date = Number(end.toLocaleFormat("%d"));
dateTime = replaceInsert(gStr.monthDate, 1, month);
dateTime = replaceInsert(dateTime, 2, date);
}