change month format

This commit is contained in:
Joerg Lehmann 2019-12-26 22:05:57 +01:00
parent d8e7fe7c02
commit 3f4c238b2f
1 changed files with 13 additions and 13 deletions

View File

@ -57,7 +57,7 @@ $(function() {
console.log("XXX: "+start.format()); console.log("XXX: "+start.format());
function cb(start, end) { function cb(start, end) {
$('#reportrange span').html(start.format('D. MMMM YYYY') + ' - ' + end.format('D. MMMM YYYY')); $('#reportrange span').html(start.format('D. MMM YYYY') + ' - ' + end.format('D. MMM YYYY'));
console.log("A new date selection was made: " + start.format() + ' to ' + end.format()); console.log("A new date selection was made: " + start.format() + ' to ' + end.format());
s_start = start.utc().format('YYYY-MM-DDTHH:mm:ss[Z]'); s_start = start.utc().format('YYYY-MM-DDTHH:mm:ss[Z]');
s_end = end.utc().format('YYYY-MM-DDTHH:mm:ss[Z]'); s_end = end.utc().format('YYYY-MM-DDTHH:mm:ss[Z]');
@ -113,18 +113,18 @@ $(function() {
"Sa" "Sa"
], ],
"monthNames": [ "monthNames": [
"Januar", "Jan",
"Februar", "Feb",
"März", "Mär",
"April", "Apr",
"Mai", "Mai",
"Juni", "Jun",
"Juli", "Jul",
"August", "Aug",
"September", "Sep",
"Oktober", "Okt",
"November", "Nov",
"Dezember" "Dez"
], ],
"firstDay": 1 "firstDay": 1
}, },
@ -263,7 +263,7 @@ if (stop == null) {
range = range + "&stop=" + stop; range = range + "&stop=" + stop;
} }
$('#reportrange span').html(moment(start).format('D. MMMM YYYY') + ' - ' + moment(stop).format('D. MMMM YYYY')); $('#reportrange span').html(moment(start).format('D. MMM YYYY') + ' - ' + moment(stop).format('D. MMM YYYY'));
drawGraph(deveui, alias, property, start, stop, true); drawGraph(deveui, alias, property, start, stop, true);