()
| 1465 | } |
| 1466 | |
| 1467 | func resolveServerTimezone() string { |
| 1468 | timezone := strings.TrimSpace(common.LoadTimeZoneByCmd()) |
| 1469 | if timezone == "" { |
| 1470 | return defaultUserTimezone |
| 1471 | } |
| 1472 | if _, err := time.LoadLocation(timezone); err != nil { |
| 1473 | return defaultUserTimezone |
| 1474 | } |
| 1475 | return timezone |
| 1476 | } |
| 1477 | |
| 1478 | func extractStringList(value interface{}) []string { |
| 1479 | switch values := value.(type) { |
no outgoing calls
no test coverage detected