lib/chronicle/etl/configurable.rb in chronicle-etl-0.5.4 vs lib/chronicle/etl/configurable.rb in chronicle-etl-0.5.5

- old
+ new

@@ -106,9 +106,13 @@ value end end def coerce_time(value) + # parsing yml files might result in us getting Date objects + # we convert to DateTime first to to ensure UTC + return value.to_datetime.to_time if value.is_a?(Date) + return value unless value.is_a?(String) # Hacky check for duration strings like "60m" if value.match(/[a-z]+/) ChronicDuration.raise_exceptions = true