added support for time.Time type