mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add API key scope to restrict access to user data (#17692)
This commit is contained in:
@@ -42,7 +42,7 @@ func TimezoneIANA() (*time.Location, error) {
|
||||
return nil, xerrors.Errorf("read location of %s: %w", zoneInfoPath, err)
|
||||
}
|
||||
|
||||
stripped := strings.Replace(lp, realZoneInfoPath, "", -1)
|
||||
stripped := strings.ReplaceAll(lp, realZoneInfoPath, "")
|
||||
stripped = strings.TrimPrefix(stripped, string(filepath.Separator))
|
||||
loc, err = time.LoadLocation(stripped)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user