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-Tag: Release-5.2.12~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=80d894c0c69f0d671cb237facb7184ea6b76115c;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)