_plugins/date_filters.rb
# Returns a datetime if the input is a string
Returns a datetime if the input is a string
Returns a datetime if the input is a string
def iso(input)
    if input.is_a?(String)
      t = Time.parse(input)
    else
      t = input
    end
    if t
      t.iso8601
    else
      input
    end
  end
def iso ( input ) if input . is_a? ( String ) t = Time . parse ( input ) else t = input end if t t . iso8601 else input end end
Returns a datetime if the input is a string
Returns a datetime if the input is a string
input
<not_specific>