lib/jekyll-import/importers/ghost.rb in jekyll-import-0.4.1 vs lib/jekyll-import/importers/ghost.rb in jekyll-import-0.5.0

- old
+ new

@@ -1,6 +1,5 @@ -# NOTE: This migrator is made for Ghost sqlite databases. module JekyllImport module Importers class Ghost < Importer def self.specify_options(c) @@ -36,10 +35,10 @@ def self.write_post_to_file(post) # detect if the post is a draft draft = post[:status].eql?('draft') - # Ghost saves the time in an weird format with 3 more numbers. + # Ghost saves the time in an weird format with 3 more numbers. # But the time is correct when we remove the last 3 numbers. date = Time.at(post[:created_at].to_i.to_s[0..-4].to_i) # the directory where the file will be saved to. either _drafts or _posts directory = draft ? "_drafts" : "_posts"