lib/fugit/misc.rb in fugit-0.9.3 vs lib/fugit/misc.rb in fugit-0.9.4

- old
+ new

@@ -43,14 +43,14 @@ isostamp(true, true, false, t) end def self.time_to_plain_s(t=Time.now) - s = StringIO.new + t.strftime('%Y-%m-%d %H:%M:%S') + (t.utc? ? ' Z' : '') + end - s << t.strftime('%Y-%m-%d %H:%M:%S') - s << ' Z' if t.utc? + def self.time_to_zone_s(t=Time.now) - s.string + t.strftime('%Y-%m-%d %H:%M:%S %Z %z') end end