From 8e942d3f969d81cf18f2714afeddb376193c8ec1 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 26 Mar 2007 02:05:36 +0000 Subject: [PATCH] Do not do timezone adjustment if tz is not set - unlogged in users thus see the "local" timezone --- languages/Language.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/Language.php b/languages/Language.php index 5815f61979..d331f03768 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -416,7 +416,7 @@ class Language { } # Account for databases that use timestamp with time zone - if ( isset($wgDBtimezone) ) { + if ( isset($wgDBtimezone) and $tz ) { $hrDiff -= $wgDBtimezone; } -- 2.20.1