From 989225a8f17b551c46b6d4f53ded2dbdc901bae2 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 25 Jun 2011 23:27:29 +0200 Subject: [PATCH] added year to headline date (closes #77) --- htdocs/frontend/javascripts/wui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/frontend/javascripts/wui.js b/htdocs/frontend/javascripts/wui.js index eef7569..02850f5 100644 --- a/htdocs/frontend/javascripts/wui.js +++ b/htdocs/frontend/javascripts/wui.js @@ -409,8 +409,8 @@ vz.wui.formatNumber = function(number) { } vz.wui.updateHeadline = function() { - var from = $.plot.formatDate(new Date(vz.options.plot.xaxis.min + vz.options.timezoneOffset), '%d. %b %h:%M:%S', vz.options.plot.xaxis.monthNames); - var to = $.plot.formatDate(new Date(vz.options.plot.xaxis.max + vz.options.timezoneOffset), '%d. %b %h:%M:%S', vz.options.plot.xaxis.monthNames); + var from = $.plot.formatDate(new Date(vz.options.plot.xaxis.min + vz.options.timezoneOffset), '%d. %b %y %h:%M', vz.options.plot.xaxis.monthNames); + var to = $.plot.formatDate(new Date(vz.options.plot.xaxis.max + vz.options.timezoneOffset), '%d. %b %y %h:%M', vz.options.plot.xaxis.monthNames); $('#title').html(from + ' - ' + to); }