Dateparse refactor to split time/date

This commit is contained in:
Aaron Raddon
2018-03-01 18:36:46 -08:00
parent 20cd681f46
commit e152c5aaf6
3 changed files with 396 additions and 351 deletions

View File

@@ -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()
}