diff --git a/lib/jekyll-import/importers/wordpress.rb b/lib/jekyll-import/importers/wordpress.rb index bb617e72..2daf791d 100644 --- a/lib/jekyll-import/importers/wordpress.rb +++ b/lib/jekyll-import/importers/wordpress.rb @@ -115,6 +115,7 @@ def self.process(opts) posts.post_title AS `title`, posts.post_name AS `slug`, posts.post_date AS `date`, + posts.post_date_gmt AS `date_gmt`, posts.post_content AS `content`, posts.post_excerpt AS `excerpt`, posts.comment_count AS `comment_count`, @@ -276,7 +277,8 @@ def self.process_post(post, db, options) 'more_anchor' => more_anchor, 'wordpress_id' => post[:id], 'wordpress_url' => post[:guid].to_s, - 'date' => date, + 'date' => date.to_s, + 'date_gmt' => post[:date_gmt].to_s, 'categories' => options[:categories] ? categories : nil, 'tags' => options[:tags] ? tags : nil, 'comments' => options[:comments] ? comments : nil,