summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-20 01:15:56 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-20 01:15:56 -0600
commit6b080f09c280dad73a4a83f421cbfb8b10f2450e (patch)
treefe7abf911bd0d1fae31e1b97f87457a1265fda3c
parent4d2ddc9ef274ea27fb5ab018c62fcdde9426e234 (diff)
Use mountain time, not UTC
-rw-r--r--Makefile2
-rw-r--r--cmd/generate/main.go1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0ece25f..bd4534e 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ generate-clean:
################################################################################
public/imworkingon/index.html: FORCE
- go run ./cmd/generate
+ TZ=America/Denver go run ./cmd/generate
.PRECIOUS: public/imworkingon/index.html
public/imworkingon/imworkingon.css: public/imworkingon/imworkingon.scss
sass $< $@
diff --git a/cmd/generate/main.go b/cmd/generate/main.go
index 7fa842f..249e2a5 100644
--- a/cmd/generate/main.go
+++ b/cmd/generate/main.go
@@ -68,6 +68,7 @@ func mainWithError() error {
tmpl := template.Must(template.New("imworkingon.html.tmpl").
Funcs(template.FuncMap{
"timeTag": func(ts time.Time, prettyFmt string) (template.HTML, error) {
+ ts = ts.Local()
var out strings.Builder
err := timeTagTmpl.Execute(&out, map[string]string{
"Machine": ts.Format(time.RFC3339),