pg_json 0.1.17 → 0.1.18

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/pg_json/sequel/pg_json.rb +1 -1
  2. metadata +1 -1
@@ -9,7 +9,7 @@ JSON_TYPES[:datetime] = lambda do |v|
9
9
  v.nil? ? nil : v.to_datetime
10
10
  end
11
11
  JSON_TYPES[:timestamp] = lambda do |v|
12
- v.nil? ? nil : Time.at(v.to_datetime)
12
+ v.nil? ? nil : Time.at(v)
13
13
  end
14
14
 
15
15
  class Hash
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: