forked from an/flokati
dont hardcode time offset in fuzzytime.go, set correct timezone in Dockerfile
This commit is contained in:
parent
426511785e
commit
9746d49530
2 changed files with 4 additions and 3 deletions
|
@ -29,8 +29,8 @@ func fuzzytimeHandleMessage(m *Message) {
|
|||
func fuzzytimeShow(channel string) {
|
||||
t := time.Now()
|
||||
h := t.Hour()
|
||||
tzcorrect := 1
|
||||
h = h + tzcorrect // XXX: This should not be hardcoded
|
||||
z, o := t.Zone()
|
||||
h = h + o
|
||||
m := t.Minute()
|
||||
s := "Es ist "
|
||||
switch {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue