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:06:20 +00:00
parent e535ddc4c5
commit 661a989fa6

View File

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