summaryrefslogtreecommitdiff
path: root/modules/g2_import/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-01 22:18:52 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-01 22:18:52 -0700
commit6f3ec5f03914324f596e51f22f2df49ec48e8053 (patch)
tree7d04ba294d98c9dfcc39a67b6869115e1418016f /modules/g2_import/helpers
parent588f991d558e86a07389e27c9ca9b1b4ab0f9fe7 (diff)
Fix for ticket #357.
Changed the set the created date as part of the import and change models/comment::save() to not set the creation date if it is already set.
Diffstat (limited to 'modules/g2_import/helpers')
-rw-r--r--modules/g2_import/helpers/g2_import.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php
index 910f9342..c2ad443c 100644
--- a/modules/g2_import/helpers/g2_import.php
+++ b/modules/g2_import/helpers/g2_import.php
@@ -554,6 +554,7 @@ class g2_import_Core {
$comment->text = $text;
$comment->state = "published";
$comment->server_http_host = $g2_comment->getHost();
+ $comment->created = $g2_comment->getDate();
$comment->save();
self::map($g2_comment->getId(), $comment->id);