From 8a58011dde24b7915355aea5f9f0a32bee3252a8 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Sat, 13 Jan 2007 16:30:07 +0000 Subject: [PATCH] Make the touch command run by update_code set the TZ to UTC, for consistent setting of asset timestamps. git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@5921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- CHANGELOG | 2 ++ lib/capistrano/recipes/standard.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index cfdbbd88..44b4f3a5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Make the touch command run by update_code set the TZ to UTC, for consistent setting of asset timestampes. [NeilW] + * Fix off-by-one bug in show_tasks width-computation [NeilW] *1.3.1* (January 5, 2007) diff --git a/lib/capistrano/recipes/standard.rb b/lib/capistrano/recipes/standard.rb index 4678377c..88953819 100644 --- a/lib/capistrano/recipes/standard.rb +++ b/lib/capistrano/recipes/standard.rb @@ -88,7 +88,7 @@ task :update_code, :except => { :no_release => true } do # lets the asset timestamping feature of rails work correctly stamp = Time.now.utc.strftime("%Y%m%d%H%M.%S") asset_paths = %w(images stylesheets javascripts).map { |p| "#{release_path}/public/#{p}" } - run "find #{asset_paths.join(" ")} -exec touch -t #{stamp} {} \\;; true" + run "TZ=UTC find #{asset_paths.join(" ")} -exec touch -t #{stamp} {} \\;; true" # uncache the list of releases, so that the next time it is called it will # include the newly released path.