mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 04:35:33 +00:00
Bug 408696 - Don't show leading 0 for download dates. r=sdwilsh, a1.9=beltzner
This commit is contained in:
parent
3586680e00
commit
4b3252c169
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user