r76868 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76867‎ | r76868 | r76869 >
Date:00:41, 17 November 2010
Author:krinkle
Status:ok
Tags:
Comment:
Follow-up on r76326 - Fixing milliseconds zero padding for mw.log
Modified paths:
  • /trunk/phase3/resources/mediawiki/mediawiki.log.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki/mediawiki.log.js
@@ -29,7 +29,7 @@
3030 var time = ( d.getHours() < 10 ? '0' + d.getHours() : d.getHours() ) +
3131 ':' + ( d.getMinutes() < 10 ? '0' + d.getMinutes() : d.getMinutes() ) +
3232 ':' + ( d.getSeconds() < 10 ? '0' + d.getSeconds() : d.getSeconds() ) +
33 - '.' + ( d.getMilliseconds() < 100 ? '0' + d.getMilliseconds() : d.getMilliseconds() );
 33+ '.' + ( d.getMilliseconds() < 10 ? '00' + d.getMilliseconds() : ( d.getMilliseconds() < 100 ? '0' + d.getMilliseconds() : d.getMilliseconds() ) );
3434 // Show a log box for console-less browsers
3535 var $log = $( '#mw-log-console' );
3636 if ( !$log.length ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r76326* Following id-naming, underscore to dash ...krinkle19:30, 8 November 2010

Status & tagging log