src/server/enterprise/cmds/cmds.go
func parseISO8601(s string) (time.Time, error) {
	t, err := time.Parse(time.RFC3339, s)
	if err == nil {
		return t, nil
	}
	t, err = time.Parse("2006-01-02T15:04:05Z0700", s)
	if err == nil {
		return t, nil
	}
	return time.Time{}, fmt.Errorf("could not parse \"%s\" as any of %v", s, []string{time.RFC3339, "2006-01-02T15:04:05Z0700"})
}
func parseISO8601(s string) (time.Time, error) {
	t, err := time.Parse(time.RFC3339, s)
	if err == nil {
		return t, nil
	}
	t, err = time.Parse("2006-01-02T15:04:05Z0700", s)
	if err == nil {
		return t, nil
	}
	return time.Time{}, fmt.Errorf("could not parse \"%s\" as any of %v", s, []string{time.RFC3339, "2006-01-02T15:04:05Z0700"})
}
// Unfortunately, Go's pre-defined format strings for parsing RFC-3339-compliant
// timestamps aren't exhaustive. This method attempts to parse a larger set of
// of ISO-8601-compatible timestampts (which are themselves a subset of RFC-3339
// timestamps)