MediaWiki:Gadget-UTCLiveClock.js: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 42: Line 42:


// Set the time.
// Set the time.
var hh = now.getHours();
var hh = now.getLocalHours();
var mm = now.getMinutes();
var mm = now.getLocalMinutes();
var ss = now.getSeconds();
var ss = now.getLocalSeconds();
var time = padWithZeroes( hh ) + ':' + padWithZeroes( mm ) + ':' + padWithZeroes( ss );
var time = padWithZeroes( hh ) + ':' + padWithZeroes( mm ) + ':' + padWithZeroes( ss );
$target.text( time );
$target.text( time );
Line 78: Line 78:
mw.util.getUrl( null, { action: 'purge' } ),
mw.util.getUrl( null, { action: 'purge' } ),
'',
'',
'date'
'localdate'
);
);
if ( !node ) {
if ( !node ) {