修復上傳日期

This commit is contained in:
邱博亞 2023-08-22 21:54:49 +08:00
parent e6fde501e9
commit b80208cfbc
1 changed files with 2 additions and 2 deletions

View File

@ -349,7 +349,7 @@ class ArchiveFile
return [data, serial_number, idx] return [data, serial_number, idx]
end end
def get_frontend_data(locale=nil, serial_number=0, idx=0, show_tags=false, more_url=nil) 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| statuses = self.statuses_with_classname.collect do |status|
{ {
"status" => status["name"] || "", "status" => status["name"] || "",
@ -361,7 +361,7 @@ class ArchiveFile
"archive-file-url" => (files.count != 0 ? files[0]["file-url"] : "javascript:void"), "archive-file-url" => (files.count != 0 ? files[0]["file-url"] : "javascript:void"),
"archive-title" => self.title, "archive-title" => self.title,
"description" => self.description, "description" => self.description,
"created_at" => created_at_int, "created_at" => updated_at_int,
"archive-url" => self.url, "archive-url" => self.url,
"url" => self.url, "url" => self.url,
"statuses" => statuses, "statuses" => statuses,