Merge pull request #508 from warpc/442-mass_build

[refs #442] Generate utc date for mass build name
This commit is contained in:
Vladimir Sharshov 2012-05-29 08:59:09 -07:00
commit 2e7865d487
1 changed files with 1 additions and 1 deletions

View File

@ -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