Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[35554] Use ISO date order for costs xls export file name (#13443)

Christophe Bliard45e4ade5b780
diff --git a/modules/reporting/app/workers/cost_query/export_job.rb b/modules/reporting/app/workers/cost_query/export_job.rb
index 90472f7add9..a9b597a955c 100644
--- a/modules/reporting/app/workers/cost_query/export_job.rb
+++ b/modules/reporting/app/workers/cost_query/export_job.rb
@@ -30,7 +30,7 @@ class CostQuery::ExportJob < Exports::ExportJob
def xls_report_result
params = { query:, project:, cost_types: }
content = ::OpenProject::Reporting::CostEntryXlsTable.generate(params).xls
- time = Time.zone.now.strftime('%d-%m-%Y-T-%H-%M-%S')
+ time = Time.current.strftime('%Y-%m-%d-T-%H-%M-%S')
export_title = "cost-report-#{time}.xls"
::Exports::Result.new(format: :xls,