You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the code assumes that the user is always in the CET timezone based on the code in Message#process_value. Is this correct? and expected behaviour?
def process_value(type, val)
if type[:type][0..3].to_sym == :enum
val = Sdk.enum(type[:type])[val]
elsif type[:type] == :date_time
t = Time.new(1989, 12, 31, 0, 0, 0, '+00:00').utc.to_i
Time.at(val + t).utc
elsif type[:type] == :local_date_time
t = Time.new(1989, 12, 31, 0, 0, 0, '+02:00').utc.to_i
val = Time.at(val + t)
elsif type[:type] == :coordinates
val *= (180.0 / 2**31)
end
The text was updated successfully, but these errors were encountered:
Great! I'll give it a ponder myself, but I probably won't be able to get it fixed for a few days. So if you get a PR together before I do then I'll happily accept it.
It seems like the code assumes that the user is always in the CET timezone based on the code in
Message#process_value
. Is this correct? and expected behaviour?The text was updated successfully, but these errors were encountered: