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. |
var hh = now.getUTC9Hours(); |
||
var mm = now. |
var mm = now.getUTC9Minutes(); |
||
var ss = now. |
var ss = now.getUTC9Seconds(); |
||
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' } ), |
||
'', |
'', |
||
' |
'utcdate' |
||
); |
); |
||
if ( !node ) { |
if ( !node ) { |