Skip to content

Commit

Permalink
Remove panic
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Feb 17, 2017
1 parent f4cc469 commit 47420ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ func (p *PeriodicConfig) Canonicalize() {
// Load the location
l, err := time.LoadLocation(p.TimeZone)
if err != nil {
panic(fmt.Sprintf("Bad location %q: %v", p.TimeZone, err))
p.location = time.UTC
}

p.location = l
Expand Down

0 comments on commit 47420ba

Please sign in to comment.