lib/nwsdk/helpers.rb in nwsdk-1.1.7 vs lib/nwsdk/helpers.rb in nwsdk-1.2.0
- old
+ new
@@ -10,11 +10,11 @@
when 1,2,3,4,5,6,7,8,9,34
field['value'].to_i
when 10,11
field['value'].to_f
when 32
- t=Time.at(field['value'].to_i)
- t + t.gmtoff
+ Time.at(field['value'].to_i).utc
+ #t + t.gmtoff
when 33
Nwsdk::Constants::NW_VARIANT_DAYS[field['value'].to_i]
when 128,129
IPAddr.new(field['value'])
else