MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / resolveServerTimezone

Function resolveServerTimezone

agent/app/service/agents_utils.go:1467–1476  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1465}
1466
1467func 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
1478func extractStringList(value interface{}) []string {
1479 switch values := value.(type) {

Callers 3

extractOtherConfigFunction · 0.85
setOtherConfigFunction · 0.85
writeOpenclawConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected