Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -539,10 +539,11 @@ |
540 | 540 | } |
541 | 541 | |
542 | 542 | // Info |
| 543 | + $now = wfTimestampNow(); |
543 | 544 | $nowlocal = Xml::element( 'span', array( 'id' => 'wpLocalTime' ), |
544 | | - $wgLang->time( $now = wfTimestampNow(), true ) ); |
| 545 | + $wgLang->time( $now, true ) ); |
545 | 546 | $nowserver = $wgLang->time( $now, false ) . |
546 | | - Html::hidden( 'wpServerTime', substr( $now, 8, 2 ) * 60 + substr( $now, 10, 2 ) ); |
| 547 | + Html::hidden( 'wpServerTime', (int)substr( $now, 8, 2 ) * 60 + (int)substr( $now, 10, 2 ) ); |
547 | 548 | |
548 | 549 | $defaultPreferences['nowserver'] = array( |
549 | 550 | 'type' => 'info', |