From c3b595146500991824090431c42f0bd6478abac3 Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Tue, 29 May 2012 19:55:37 +0400 Subject: [PATCH] [refs #442] Fix utc date for mass build name --- app/models/mass_build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/mass_build.rb b/app/models/mass_build.rb index 01bf362fb..1afe9a99b 100644 --- a/app/models/mass_build.rb +++ b/app/models/mass_build.rb @@ -17,7 +17,7 @@ class MassBuild < ActiveRecord::Base if new_record? rep_names = Repository.where(:id => self.repositories).map(&:name).join(", ") - self.name = "#{Date.today.strftime("%d.%b")}-#{platform.name}(#{rep_names})" + self.name = "#{Time.now.utc.to_date.strftime("%d.%b")}-#{platform.name}(#{rep_names})" self.arch_names = Arch.where(:id => self.arches).map(&:name).join(", ") end end