leon 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/io.rb +3 -3
  2. 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.readUInt32())
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.to_i, Constants::UNSIGNED_INT, true)
412
- return byteCount + 4
411
+ writeValue(val.to_f * 1000, Constants::DOUBLE, true)
412
+ return byteCount + 8
413
413
  end
414
414
  end
415
415
  def writeString(str)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: