Use existing time format string to generate backup archive filename (#36469)

This commit is contained in:
Matt Jankowski
2025-11-27 04:38:27 -05:00
committed by GitHub
parent e126cfc76d
commit 199376a080

View File

@@ -63,7 +63,7 @@ class BackupService < BaseService
dump_actor!(zipfile)
end
archive_filename = "#{['archive', Time.now.utc.strftime('%Y%m%d%H%M%S'), SecureRandom.hex(16)].join('-')}.zip"
archive_filename = "#{['archive', Time.current.to_fs(:number), SecureRandom.hex(16)].join('-')}.zip"
@backup.dump = ActionDispatch::Http::UploadedFile.new(tempfile: tmp_file, filename: archive_filename)
@backup.processed = true