From 88fca55025a124d786eb5a245b4d8eb3b1906d83 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Sat, 21 Jan 2006 04:28:59 +0000 Subject: [PATCH] Fix stftime format string used in CVS module to be Windows-compatible (closes #3383) git-svn-id: http://svn.rubyonrails.org/rails/tools/switchtower@3444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- CHANGELOG | 2 ++ lib/switchtower/scm/cvs.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 2330ccc8..768d2b38 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *0.11.0* *SVN* +* Fix stftime format string used in CVS module to be Windows-compatible (fixes #3383) + * Add an better error when a task is run and no servers match the required conditions * Add default spinner and cold_deploy tasks, and spinner_user variable diff --git a/lib/switchtower/scm/cvs.rb b/lib/switchtower/scm/cvs.rb index cb139870..fa97acb6 100644 --- a/lib/switchtower/scm/cvs.rb +++ b/lib/switchtower/scm/cvs.rb @@ -32,7 +32,7 @@ module SwitchTower configuration.logger.debug "querying latest revision..." @latest_revision = cvs_log(configuration.local). split(/\r?\n/). - grep(/^date: (.*?);/) { Time.parse($1).strftime("%F %T") }. + grep(/^date: (.*?);/) { Time.parse($1).strftime("%Y-%m-%d %H:%M:%S") }. sort. last end