Date and time formats

gh-pages
Guillaume RISCHARD 2014-08-31 03:40:55 +02:00
parent 01586068c3
commit 477af5af02
1 changed files with 3 additions and 3 deletions

View File

@ -50,8 +50,8 @@
function refreshTime() {
$('.time').text( moment().format('HH:mm') );
$('.date').text( moment().format('dddd, Do \of MMMM') );
$('.time').text( moment().format('HH:mm') ); // 03:37
$('.date').text( moment().format('dddd, D MMMM') ); // Sunday, 31 August
}
@ -221,7 +221,7 @@ function l2status() {
var status = JSON.parse( response.responseText );
var timeStamp = moment.unix( status.state.lastchange ).format( 'HH:mm' );
var timeStamp = moment.unix( status.state.lastchange ).fromNow();
$('.status').removeClass('open').removeClass('closed');