lib/libdolt/git/blame.rb in libdolt-0.10.0 vs lib/libdolt/git/blame.rb in libdolt-0.10.1
- old
+ new
@@ -96,10 +96,10 @@
def extract_hash(lines, type)
{
:name => extract(lines, "#{type}"),
:mail => extract(lines, "#{type}-mail").gsub(/[<>]/, ""),
- :time => (Time.at(extract(lines, "#{type}-time").to_i) +
+ :time => (Time.at(extract(lines, "#{type}-time").to_i).utc +
Time.zone_offset(extract(lines, "#{type}-tz")))
}
end
def extract(lines, thing)