From 21b2a0ce0174a4d808a4cb20ede55ef42b9e76b9 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 28 Mar 2007 19:54:45 +0000 Subject: [PATCH] Much more elegant solution for functions that are not sending a timestamp, thanks to Brion. --- languages/Language.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/languages/Language.php b/languages/Language.php index a23c3045ab..4f217918c6 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -753,6 +753,9 @@ class Language { */ function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) { $this->load(); + + $ts = wfTimestamp( TS_MW, $ts ); + if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } -- 2.20.1