diff --git a/lib/psych/scalar_scanner.rb b/lib/psych/scalar_scanner.rb index 5935e26b..9e4d07f4 100644 --- a/lib/psych/scalar_scanner.rb +++ b/lib/psych/scalar_scanner.rb @@ -143,7 +143,7 @@ def parse_time string offset += ((tz[1] || 0) * 60) end - klass.at((time - offset).to_i, us) + klass.new(yy, m, dd, hh, mm, ss+us/1000000, offset) end end end