From: Andrew Dolgov Date: Fri, 12 Nov 2010 15:51:46 +0000 (+0300) Subject: db-prefs: add fix for USER_TIMEZONE default value X-Git-Tag: 1.5.0~255 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ec39f07a84c586931221887f2274e4a08413851a;p=tt-rss.git db-prefs: add fix for USER_TIMEZONE default value --- 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