diff --git a/caste.go b/caste.go index 9ac1015..af9e9bc 100644 --- a/caste.go +++ b/caste.go @@ -1273,6 +1273,10 @@ func parseDateWith(s string, dates []string) (d time.Time, e error) { return } } + if i, err := strconv.Atoi(t); err == nil { + return time.Unix(int64(i), 0), nil + } + return d, fmt.Errorf("unable to parse date: %s", s) }