Module: deluge Branch: master Commit: 112b0dc1f079a1ebda9566b5733a4e55894021d7
Author: Damien Churchill <[email protected]> Date: Tue Apr 20 08:32:11 2010 +0100 fix the zeroPad calls in the date function --- deluge/ui/web/js/deluge-all/Formatters.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Formatters.js b/deluge/ui/web/js/deluge-all/Formatters.js index 191b34f..ed36bfe 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)); }, /** -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
