From 112b0dc1f079a1ebda9566b5733a4e55894021d7 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 20 Apr 2010 08:32:11 +0100 Subject: [PATCH] fix the zeroPad calls in the date function --- deluge/ui/web/js/deluge-all/Formatters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/web/js/deluge-all/Formatters.js b/deluge/ui/web/js/deluge-all/Formatters.js index 191b34fdf..ed36bfe4d 100644 --- a/deluge/ui/web/js/deluge-all/Formatters.js +++ b/deluge/ui/web/js/deluge-all/Formatters.js @@ -58,7 +58,7 @@ Deluge.Formatters = { var date = new Date(timestamp); return String.format('{0}/{1}/{2} {3}:{4}:{5}', zeroPad(date.getDate(), 2), zeroPad(date.getMonth() + 1, 2), date.getFullYear(), - zeroPad(date.getHours()), zeroPad(date.getMinutes()), zeroPad(date.getSeconds())); + zeroPad(date.getHours(), 2), zeroPad(date.getMinutes(), 2), zeroPad(date.getSeconds(), 2)); }, /**