diff options
author | Andrew Dolgov <[email protected]> | 2010-11-12 18:51:46 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-12 18:51:46 +0300 |
commit | ec39f07a84c586931221887f2274e4a08413851a (patch) | |
tree | 0b08e69e47847e68df5f889bb558264540d41a58 | |
parent | 6b32516bd0a851c117f785fa7208a6164cdea46f (diff) |
db-prefs: add fix for USER_TIMEZONE default value
-rw-r--r-- | db-prefs.php | 4 |
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 |