]> git.wh0rd.org Git - tt-rss.git/commitdiff
db-prefs: add fix for USER_TIMEZONE default value
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 12 Nov 2010 15:51:46 +0000 (18:51 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 12 Nov 2010 15:51:46 +0000 (18:51 +0300)
db-prefs.php

index af187df1b9849e0924b3f64a52e07c2f3adef377..cc2bb22e2e247c984c1fde7323346aa0a3a441b8 100644 (file)
                                $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