ice_cube 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ice_cube/time_util.rb +1 -1
- data/lib/ice_cube/version.rb +1 -1
- metadata +3 -3
data/lib/ice_cube/time_util.rb
CHANGED
@@ -7,7 +7,7 @@ module IceCube
|
|
7
7
|
|
8
8
|
def self.serialize_time(time)
|
9
9
|
if time.is_a?(ActiveSupport::TimeWithZone)
|
10
|
-
{ :time => time, :zone => time.
|
10
|
+
{ :time => time, :zone => time.time_zone.is_a?(ActiveSupport::TimeZone) ? time.time_zone.name : time.time_zone }
|
11
11
|
elsif time.is_a?(Time)
|
12
12
|
time
|
13
13
|
end
|
data/lib/ice_cube/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ice_cube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John Crepezzi
|