summaryrefslogtreecommitdiff
path: root/modules/pref-prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-07 18:14:48 +0300
committerAndrew Dolgov <[email protected]>2010-11-07 18:14:48 +0300
commit324944f3329b99e527f12c65e4a0e1358e8f180a (patch)
tree37b098fa9a066e3dbb0d74584a571fabb749e092 /modules/pref-prefs.php
parentf3f67c1b53d2d93486fc3c57253b8af4d5e7a0c7 (diff)
implement per-user timezone support; store dates in UTC internally (closes #254)
Diffstat (limited to 'modules/pref-prefs.php')
-rw-r--r--modules/pref-prefs.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php
index 5105f3573..f5671a995 100644
--- a/modules/pref-prefs.php
+++ b/modules/pref-prefs.php
@@ -370,7 +370,13 @@
print "<td class=\"prefValue\">";
- if ($pref_name == "DEFAULT_UPDATE_INTERVAL") {
+ if ($pref_name == "USER_TIMEZONE") {
+
+ $timezones = explode("\n", file_get_contents("lib/timezones.txt"));
+
+ print_select($pref_name, $value, $timezones);
+
+ } else if ($pref_name == "DEFAULT_UPDATE_INTERVAL") {
global $update_intervals_nodefault;