From 6c14739e31cbdf18a13d0d78adaee6e334ba8369 Mon Sep 17 00:00:00 2001 From: "gijskruitbosch%gmail.com" Date: Sat, 3 Oct 2009 21:03:50 +0000 Subject: [PATCH] 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 --- mozilla/extensions/irc/js/lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/extensions/irc/js/lib/utils.js b/mozilla/extensions/irc/js/lib/utils.js index 55fac652743..e588f507372 100644 --- a/mozilla/extensions/irc/js/lib/utils.js +++ b/mozilla/extensions/irc/js/lib/utils.js @@ -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); } }