norr-couchrest 0.33.01 → 0.33.02
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/couchrest/mixins/properties.rb +2 -2
- metadata +1 -1
@@ -73,8 +73,8 @@ module CouchRest
|
|
73
73
|
# Auto parse Time objects
|
74
74
|
self[property.name] = if ((property.init_method == 'new') && target == 'Time')
|
75
75
|
# Using custom time parsing method because Ruby's default method is toooo slow
|
76
|
-
self[key].is_a?(String) ? Time.mktime_with_offset(self[key].dup) : self[key]
|
77
|
-
|
76
|
+
#self[key].is_a?(String) ? Time.mktime_with_offset(self[key].dup) : self[key]
|
77
|
+
self[key].is_a?(String) ? Time.parse(self[key].dup) : self[key]
|
78
78
|
# Float instances don't get initialized with #new
|
79
79
|
elsif ((property.init_method == 'new') && target == 'Float')
|
80
80
|
cast_float(self[key])
|