Correct display of month

Month displayed was incorrect, as JavaScript Date.getMonth() starts at 0. So November was displayed as '10'.
This commit is contained in:
Simon Harris
2014-11-14 10:08:21 +00:00
parent 661a989fa6
commit 1512236fba

View File

@@ -182,7 +182,7 @@
*/
function getDateString( date ) {
return twoDigits( date.getDate() ) + '/'
+ twoDigits( date.getMonth() ) + '/'
+ twoDigits( date.getMonth() + 1 ) + '/'
+ date.getFullYear() + ' at '
+ twoDigits(date.getHours()) + ':'
+ twoDigits(date.getMinutes()) + ':'
@@ -578,4 +578,4 @@
// load initial data
dataRetriever.retrieve( );
});
}( jQuery ));
}( jQuery ));