diff --git a/app/models/archive_file.rb b/app/models/archive_file.rb index 5daba82..9d30e3c 100644 --- a/app/models/archive_file.rb +++ b/app/models/archive_file.rb @@ -349,7 +349,7 @@ class ArchiveFile return [data, serial_number, idx] end def get_frontend_data(locale=nil, serial_number=0, idx=0, show_tags=false, more_url=nil) - created_at_int = self.created_at.strftime('%Y%m%d').to_i + updated_at_int = self.updated_at.strftime('%Y%m%d').to_i statuses = self.statuses_with_classname.collect do |status| { "status" => status["name"] || "", @@ -361,7 +361,7 @@ class ArchiveFile "archive-file-url" => (files.count != 0 ? files[0]["file-url"] : "javascript:void"), "archive-title" => self.title, "description" => self.description, - "created_at" => created_at_int, + "created_at" => updated_at_int, "archive-url" => self.url, "url" => self.url, "statuses" => statuses,