Skip to content

Commit

Permalink
worldclock: Fix double minus sign
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Dec 5, 2024
1 parent 3db069a commit 3c1c031
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/worldclock/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ type Response struct {
}

func (r *Response) GmtOffsetFormatted() string {
sign := "+"
if r.GmtOffset < 0 {
sign = "-"
var sign string
if r.GmtOffset > 0 {
sign = "+"
}
hours := r.GmtOffset / 3600
minutes := (r.GmtOffset % 3600) / 60
Expand Down

0 comments on commit 3c1c031

Please sign in to comment.