Compare commits
2 Commits
e494c19468
...
ffe325a7f0
Author | SHA1 | Date |
---|---|---|
Andreas Neue | ffe325a7f0 | |
Andreas Neue | 9746d49530 |
|
@ -1,7 +1,8 @@
|
||||||
FROM golang:latest
|
FROM golang:latest
|
||||||
MAINTAINER Andreas Neue <an@dnix.de>
|
MAINTAINER Andreas Neue <an@dnix.de>
|
||||||
|
|
||||||
RUN apt -y update && apt -y upgrade && apt-get install -y fortune vim ca-certificates && apt-get clean
|
RUN apt -y update && apt -y upgrade && apt-get install -y fortune vim tzdata ca-certificates && apt-get clean
|
||||||
|
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
|
|
||||||
WORKDIR /go/src/flokati
|
WORKDIR /go/src/flokati
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
|
@ -29,8 +29,8 @@ func fuzzytimeHandleMessage(m *Message) {
|
||||||
func fuzzytimeShow(channel string) {
|
func fuzzytimeShow(channel string) {
|
||||||
t := time.Now()
|
t := time.Now()
|
||||||
h := t.Hour()
|
h := t.Hour()
|
||||||
tzcorrect := 1
|
z, o := t.Zone()
|
||||||
h = h + tzcorrect // XXX: This should not be hardcoded
|
h = h + o
|
||||||
m := t.Minute()
|
m := t.Minute()
|
||||||
s := "Es ist "
|
s := "Es ist "
|
||||||
switch {
|
switch {
|
||||||
|
|
Loading…
Reference in New Issue