From 83404846111021fa9fdf53da6f79cf20423fe52f Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 28 Jun 2021 10:56:03 +0100 Subject: Convert time to local before display --- go.mod | 2 ++ main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3