Permalink
Browse files

changing scaler_scanner's parse_time function to return a time object…

… with offset preserved if it was specified
  • Loading branch information...
1 parent 2e8f824 commit 2f6bf9381b3fccef5e4b376ecfa9bbe2a46f6ae2 @chrisperelstein committed Jan 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/psych/scalar_scanner.rb
@@ -138,7 +138,7 @@ def parse_time string
offset += ((tz[1] || 0) * 60)
end
- Time.at((time - offset).to_i, us)
+ Time.new(yy, m, dd, hh, mm, ss+us/1000000, offset)
end
end
end

0 comments on commit 2f6bf93

Please sign in to comment.