Merge pull request #25 from matiaskorhonen/localtime

Make UTC optional
This commit is contained in:
Gavin Heavyside
2014-10-23 12:34:04 +01:00
+7 -1
View File
@@ -11,7 +11,13 @@ module CapistranoDeploytags
end
def self.formatted_time
Time.new.utc.strftime(fetch(:deploytag_time_format, "%Y.%m.%d-%H%M%S-utc"))
now = if fetch(:deploytag_utc, true)
Time.now.utc
else
Time.now
end
now.strftime(fetch(:deploytag_time_format, "%Y.%m.%d-%H%M%S-#{now.zone.downcase}"))
end
def self.commit_message(current_sha, stage)