更改

// Edit via Wikiplus
第25行: 第25行:  
// Set the time.
 
// Set the time.
 
var hh = (now.getUTCHours() + 8);
 
var hh = (now.getUTCHours() + 8);
while(hh > 24) {hh -= 24;}
+
while(hh >= 24) {hh -= 24;}
 
var mm = now.getUTCMinutes();
 
var mm = now.getUTCMinutes();
 
var ss = now.getUTCSeconds();
 
var ss = now.getUTCSeconds();
第48行: 第48行:  
// Set CSS styles. We do this here instead of on the CSS page because some
 
// Set CSS styles. We do this here instead of on the CSS page because some
 
// wikis load this page directly, without loading the accompanying CSS.
 
// wikis load this page directly, without loading the accompanying CSS.
mw.util.addCSS( '#utcdate { width: 7.55em; }' );
   
mw.util.addCSS( '#utcdate a { font-weight:bolder; }' );
 
mw.util.addCSS( '#utcdate a { font-weight:bolder; }' );
  
161

个编辑