lib/echi-converter.rb in echi-converter-0.4.1 vs lib/echi-converter.rb in echi-converter-0.4.2

- old
+ new

@@ -199,10 +199,14 @@ #Process appropriate intergers into datetime format in the database when 'datetime' case length when 4 value = @binary_file.read(length).unpack("l").first.to_i - value = Time.at(value) + if $config["echi_use_utc"] == true + value = Time.at(value).utc + else + value = Time.at(value) + end end #Process strings when 'str' value = @binary_file.read(length).unpack("M").first.to_s.rstrip #Process individual bits that are booleans \ No newline at end of file