summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-06-28 10:56:03 +0100
committerNick White <git@njw.name>2021-06-28 10:56:03 +0100
commit83404846111021fa9fdf53da6f79cf20423fe52f (patch)
tree15e2b77c6d6bc080713e8ad50d15fba597c88e4f
parentad79c7f2527e6e48b5ecc0a66e6de260fa3ac17b (diff)
downloadbbcschedule-master.tar.bz2
bbcschedule-master.zip
Convert time to local before displayHEADmaster
-rw-r--r--go.mod2
-rw-r--r--main.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index a55e1e8..b8f05bd 100644
--- a/go.mod
+++ b/go.mod
@@ -1 +1,3 @@
module njw.name/bbcschedule
+
+go 1.15
diff --git a/main.go b/main.go
index d440abd..2525f18 100644
--- a/main.go
+++ b/main.go
@@ -60,7 +60,7 @@ func fmtDate(d string) string {
if err != nil {
return d
}
- return t.Format(time.Kitchen)
+ return t.Local().Format(time.Kitchen)
}
// idFromUrn gets the ID from an iPlayer URN. This is the appropriate