[refs #442] Fix utc date for mass build name

This commit is contained in:
konstantin.grabar 2012-05-29 19:55:37 +04:00
parent 8eaec85aff
commit c3b5951465
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