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.getlocalHours();
var hh = now.getnullHours();
var mm = now.getlocalMinutes();
var mm = now.getnullMinutes();
var ss = now.getlocalSeconds();
var ss = now.getnullSeconds();
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' } ),
'',
'',
'localdate'
'nulldate'
);
);
if ( !node ) {
if ( !node ) {