From 64257106afbfae32e5234d4de45dc1ce279538e9 Mon Sep 17 00:00:00 2001 From: ullgren Date: Mon, 8 Apr 2002 20:35:29 +0000 Subject: [PATCH] Fixed problem with timezone when not set in users pref git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2702 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/validate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/validate.php b/src/validate.php index 9849264c..f19a8604 100644 --- a/src/validate.php +++ b/src/validate.php @@ -80,7 +80,8 @@ global $username, $data_dir; set_up_language(getPref($data_dir, $username, 'language')); $timeZone = getPref($data_dir, $username, 'timezone'); -if ( $timeZone != SMPREF_NONE && !ini_get("safe_mode")) { +if ( $timeZone != SMPREF_NONE && ($timeZone != "") + && !ini_get("safe_mode")) { putenv("TZ=".$timeZone); } ?> -- 2.25.1