Added support for Date objects in time filter

Some YAML parsers return a Date object when parsing date strings.
Convert those Date objects to Time objects.