Permalink
Browse files

Properly print time offsets

  • Loading branch information...
1 parent a9dbc43 commit e33fad9e988f6014d9872c264e4f342941d9f6a6 @vmg vmg committed with defunkt Aug 16, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/grit/actor.rb
View
@@ -38,9 +38,7 @@ def output(time)
if @email
out << " <#{@email}>"
end
- hours = (time.utc_offset.to_f / 3600).to_i # 60 * 60, seconds to hours
- rem = time.utc_offset.abs % 3600
- out << " #{time.to_i} #{hours >= 0 ? :+ : :-}#{hours.abs.to_s.rjust(2, '0')}#{rem.to_s.rjust(2, '0')}"
+ out << time.strftime(" %s %z")
end
# Pretty object inspection

0 comments on commit e33fad9

Please sign in to comment.