summaryrefslogtreecommitdiff
path: root/db-prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-12 18:51:46 +0300
committerAndrew Dolgov <[email protected]>2010-11-12 18:51:46 +0300
commitec39f07a84c586931221887f2274e4a08413851a (patch)
tree0b08e69e47847e68df5f889bb558264540d41a58 /db-prefs.php
parent6b32516bd0a851c117f785fa7208a6164cdea46f (diff)
db-prefs: add fix for USER_TIMEZONE default value
Diffstat (limited to 'db-prefs.php')
-rw-r--r--db-prefs.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/db-prefs.php b/db-prefs.php
index af187df1b..cc2bb22e2 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