mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 11:10:57 +01:00
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:
@@ -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 ));
|
||||||
|
|||||||
Reference in New Issue
Block a user