mirror of
https://github.com/araddon/dateparse.git
synced 2025-09-17 04:03:02 +08:00
Dateparse refactor to split time/date
This commit is contained in:
@@ -105,7 +105,7 @@ func parseAny(datestr string, loc *time.Location, utc bool) string {
|
||||
return err.Error()
|
||||
}
|
||||
if utc {
|
||||
return t.In(time.UTC).String()
|
||||
return fmt.Sprintf("%s day=%d", t.In(time.UTC), t.In(time.UTC).Weekday())
|
||||
}
|
||||
return t.String()
|
||||
}
|
||||
|
Reference in New Issue
Block a user