Bug 519997 - Repair padding of strftime. r=silver@warwickcompsoc.co.uk (James Ross), a=NPOTFFB.

git-svn-id: svn://10.0.0.236/trunk@258569 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gijskruitbosch%gmail.com 2009-10-03 21:03:50 +00:00
parent 987a815778
commit 6c14739e31

View File

@ -1441,7 +1441,7 @@ function strftime(format, time)
if ("pad" in tbranch)
{
var padwith = (padwith in tbranch) ? tbranch.padwith : "0";
var padwith = ("padwith" in tbranch) ? tbranch.padwith : "0";
rpl = padNumber(rpl, tbranch.pad, padwith);
}
}