From ec39f07a84c586931221887f2274e4a08413851a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Nov 2010 18:51:46 +0300 Subject: [PATCH] db-prefs: add fix for USER_TIMEZONE default value --- db-prefs.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db-prefs.php b/db-prefs.php index af187df1..cc2bb22e 100644 --- a/db-prefs.php +++ b/db-prefs.php @@ -121,6 +121,10 @@ $value = 30; } + if ($key == 'USER_TIMEZONE' && $value == '') { + $value = 'UTC'; + } + db_query($link, "UPDATE ttrss_user_prefs SET value = '$value' WHERE pref_name = '$key' $profile_qpart -- 2.39.5