summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--date_elements.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/date_elements.inc b/date_elements.inc
index c7cd408..3ba79c7 100644
--- a/date_elements.inc
+++ b/date_elements.inc
@@ -475,7 +475,7 @@ function date_combo_validate($element, &$form_state) {
// invalid dates, like 2AM on the day that spring daylight savings
// time begins in the US.
$granularity = date_format_order($element[$from_field]['#date_format']);
- if ($timezone != $db_timezone && date_has_time($granularity)) {
+ if ($timezone != $timezone_db && date_has_time($granularity)) {
date_timezone_set($from_date, timezone_open($timezone));
date_timezone_set($to_date, timezone_open($timezone));