norr-couchrest 0.30.2 → 0.30.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/couchrest/mixins/properties.rb +1 -3
- metadata +1 -1
@@ -74,9 +74,7 @@ module CouchRest
|
|
74
74
|
# Auto parse Time objects
|
75
75
|
self[property.name] = if ((property.init_method == 'new') && target == 'Time')
|
76
76
|
# Using custom time parsing method because Ruby's default method is toooo slow
|
77
|
-
|
78
|
-
# lets use something that is slow - that works :)
|
79
|
-
self[key].is_a?(String) ? Time.parse(self[key].dup) : self[key]
|
77
|
+
self[key].is_a?(String) ? Time.mktime_with_offset(self[key].dup) : self[key]
|
80
78
|
else
|
81
79
|
# Let people use :send as a Time parse arg
|
82
80
|
klass = ::CouchRest.constantize(target)
|