Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Better date parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed Sep 30, 2014
1 parent 0037858 commit dba32b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ImportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public function prepForFieldType(&$data, $handle)
$data = trim($data);

// Parse date from string
$data = DateTime::createFromString($data, craft()->timezone);
$data = DateTimeHelper::formatTimeForDb(DateTimeHelper::fromString($data, craft()->timezone));

break;

Expand Down

0 comments on commit dba32b2

Please sign in to comment.