about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-29 09:35:43 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-29 09:35:43 +0000
commit69f0cdba5739b8e3444f25ec7d7fbbcec0161872 (patch)
tree07dcc22e18fafab1fd95644cb1a28cc13be597f1
parent709c8605201e9bd86648fafe047ffb89262e9651 (diff)
downloadwrongdoc-69f0cdba5739b8e3444f25ec7d7fbbcec0161872.tar.gz
news_rdoc: fix date in LATEST file
We need to use a non-destructive update of tag[:time]
-rw-r--r--lib/wrongdoc/news_rdoc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wrongdoc/news_rdoc.rb b/lib/wrongdoc/news_rdoc.rb
index ee21d6b..6451db9 100644
--- a/lib/wrongdoc/news_rdoc.rb
+++ b/lib/wrongdoc/news_rdoc.rb
@@ -3,7 +3,7 @@ module Wrongdoc::NewsRdoc
   include Wrongdoc::History
 
   def puts_tag(fp, tag)
-    time = tag[:time].tr!('T', ' ').gsub!(/:\d\dZ/, ' UTC')
+    time = tag[:time].tr('T', ' ').gsub!(/:\d\dZ/, ' UTC')
     fp.puts "=== #{tag[:subject]} / #{time}"
     fp.puts ""