From: Eric Bollengier Date: Wed, 12 Sep 2012 11:14:22 +0000 (+0200) Subject: bweb: Fix patch for #1909 about bad expire value X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=67e15f3419913987c8dc3817f2eb892019e80e62;p=bacula%2Fbacula bweb: Fix patch for #1909 about bad expire value --- diff --git a/gui/bweb/html/bweb.js b/gui/bweb/html/bweb.js index f883779ec0..d85f85f697 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.getDate()+1) + ' ' + pad(datum.getHours()) + ':' + pad(datum.getMinutes()) + ':' + pad(datum.getSeconds()); + return datum.getFullYear() + '-' + pad(datum.getMonth()+1) + '-' + pad(datum.getDate()) + ' ' + pad(datum.getHours()) + ':' + pad(datum.getMinutes()) + ':' + pad(datum.getSeconds()); } function bweb_get_job_img(status, errors, type)