From 5b946d32dfb3ef182cc9b4b4d405eb52083e8f83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 1 May 2006 20:55:26 +0000 Subject: [PATCH] * Use arabic numbers for ISO times --- languages/Language.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/languages/Language.php b/languages/Language.php index 53f98cb548..50169a9627 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -644,20 +644,20 @@ class Language { if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } $datePreference = $this->dateFormat( $format ); - $sep = ($datePreference == MW_DATE_ISO) - ? ':' - : $this->timeSeparator( $format ); + $sep = $this->timeSeparator( $format ); - $hh = $this->formatNum( substr( $ts, 8, 2 ), true ); - $mm = $this->formatNum( substr( $ts, 10, 2 ), true ); - $ss = $this->formatNum( substr( $ts, 12, 2 ), true ); + $hh = substr( $ts, 8, 2 ); + $mm = substr( $ts, 10, 2 ); + $ss = substr( $ts, 12, 2 ); - $t = $hh . $sep . $mm; - - if ( $datePreference == MW_DATE_ISO ) { - $t .= $sep . $ss; + if ( $datePreference != MW_DATE_ISO ) { + $hh = $this->formatNum( $hh, true ); + $mm = $this->formatNum( $mm, true ); + //$ss = $this->formatNum( $ss, true ); + return $hh . $sep . $mm; + } else { + return $hh . ':' . $mm . ':' . $ss; } - return $t; } /** -- 2.20.1