summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-01-06 10:55:07 +0000
committeralecpl <alec@alec.pl>2012-01-06 10:55:07 +0000
commite86a21bd83a0ae6cadfe9c919582951f306d3b64 (patch)
treeb14409fe920c6389499a3e5400781495b9dd8833 /program/include/main.inc
parent529bd3f1c49be04c5eba851db2621b5b94940a89 (diff)
- Fix typo in timezone handling, more exception catching
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index f6e2ca206..148c2bd5c 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1072,7 +1072,7 @@ function format_date($date, $format=NULL, $convert=true)
try {
// convert to the right timezone
$stz = date_default_timezone_get();
- $tz = new DateTimeZone($convert ? $RCMAIL->config->get('timezones') : 'GMT');
+ $tz = new DateTimeZone($convert ? $RCMAIL->config->get('timezone') : 'GMT');
$date->setTimezone($tz);
date_default_timezone_set($tz->getName());