Skip to content

Commit 36c14fa

Browse files
javierjuliosausman
authored andcommitted
Require time lib so util method can convert to Time objects (#38)
In the `Util.deep_parse_iso8601_values` we reference `Time.iso8601` but to use that in Ruby you need to require the time library otherwise the method is undefined. The implementation has a `rescue` but that was unintended since its only meant to capture cases where a string can’t be converted to a time object. We weren’t seeing any errors here because it also caught the undefined error and let the time be a string value.
1 parent 0912dee commit 36c14fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/dwolla_v2.rb

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require "json"
44
require "forwardable"
55
require "ostruct"
6+
require "time"
67

78
require "hashie"
89

0 commit comments

Comments
 (0)