Match multiple times
This commit is contained in:
parent
1c787b5f26
commit
903902e123
|
@ -217,7 +217,7 @@ func (sc *SystemConfiguration) ConfigureTimezone() error {
|
|||
}
|
||||
}
|
||||
|
||||
sc.Timezone = regexp.MustCompile(`[^a-z_/]+/i`).ReplaceAllString(sc.Timezone, "")
|
||||
sc.Timezone = regexp.MustCompile(`[^a-z_/]+/ig`).ReplaceAllString(sc.Timezone, "")
|
||||
|
||||
_, err := time.LoadLocation(sc.Timezone)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user