From: Eric Bollengier Date: Tue, 10 Jul 2012 15:49:26 +0000 (+0200) Subject: bweb: Fix #1909 about expire calculation X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=499099f251ac43c31889b9d44d31fc7eb20b8959;p=bacula%2Fbacula bweb: Fix #1909 about expire calculation --- diff --git a/gui/bweb/html/bweb.js b/gui/bweb/html/bweb.js index 0bcd098148..f883779ec0 100644 --- a/gui/bweb/html/bweb.js +++ b/gui/bweb/html/bweb.js @@ -378,7 +378,7 @@ function timestamp_to_iso(ts) } var datum = new Date(ts); - return datum.getFullYear() + '-' + pad(datum.getMonth()+1) + '-' + pad(datum.getDay()+1) + ' ' + pad(datum.getHours()) + ':' + pad(datum.getMinutes()) + ':' + pad(datum.getSeconds()); + return datum.getFullYear() + '-' + pad(datum.getMonth()+1) + '-' + pad(datum.getDate()+1) + ' ' + pad(datum.getHours()) + ':' + pad(datum.getMinutes()) + ':' + pad(datum.getSeconds()); } function bweb_get_job_img(status, errors, type)