leon 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/io.rb +3 -3
- metadata +1 -1
data/lib/io.rb
CHANGED
@@ -37,7 +37,7 @@ module LEON
|
|
37
37
|
return RegExp.new(readString(), readString())
|
38
38
|
end
|
39
39
|
def readDate()
|
40
|
-
return Time.at(@buffer.
|
40
|
+
return Time.at(@buffer.readDouble() / 1000)
|
41
41
|
end
|
42
42
|
def parseSI()
|
43
43
|
if (@state & 0x01) != 0
|
@@ -408,8 +408,8 @@ module LEON
|
|
408
408
|
if val.kind_of? Date
|
409
409
|
val = Time.parse(val.to_s)
|
410
410
|
end
|
411
|
-
writeValue(val.
|
412
|
-
return byteCount +
|
411
|
+
writeValue(val.to_f * 1000, Constants::DOUBLE, true)
|
412
|
+
return byteCount + 8
|
413
413
|
end
|
414
414
|
end
|
415
415
|
def writeString(str)
|