We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c64dbae commit 15352e8Copy full SHA for 15352e8
lib/dynamoid/dumping.rb
@@ -222,7 +222,11 @@ def format_datetime(value, options)
222
223
if use_string_format
224
value_in_time_zone = Dynamoid::DynamodbTimeZone.in_time_zone(value)
225
- value_in_time_zone.iso8601
+ if options[:iso_precision].nil?
226
+ value_in_time_zone.iso8601
227
+ else
228
+ value_in_time_zone.iso8601(options[:iso_precision].to_i)
229
+ end
230
else
231
unless value.respond_to?(:to_i) && value.respond_to?(:nsec)
232
value = value.to_time
0 commit comments