From 2a6ac6ab35f648e8edb9af88b88c31432359170d Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Mon, 8 Feb 2010 16:02:37 +0000
Subject: [PATCH] #708060 yhahn: Bad timezone argument passed to FeedsDateTime
 object.

---
 plugins/FeedsParser.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/FeedsParser.inc b/plugins/FeedsParser.inc
index 9f872a1f..07a6408e 100644
--- a/plugins/FeedsParser.inc
+++ b/plugins/FeedsParser.inc
@@ -264,7 +264,7 @@ class FeedsDateTimeElement extends FeedsElement {
 
     // Set timezone if not already in the FeedsDateTime object
     $to_tz = date_get_timezone($field['tz_handling'], date_default_timezone_name());
-    $temp = new FeedsDateTime($to_tz, NULL);
+    $temp = new FeedsDateTime(NULL, new DateTimeZone($to_tz));
 
     $db_tz = '';
     if ($use_start) {
-- 
GitLab