prime8dev

prime8dev
git clone https://git.prime8.dev/prime8dev.git
Log | Files | Refs | README | LICENSE

commit 49fc72b24e0abea8f6dfd1c8756b118150562963
parent 794f0a92b90ab188fce4a40de03754d3649ae873
Author: Damian Myrda <damian@prime8.dev>
Date:   Fri, 23 Oct 2026 05:44:14 +0000

uptime: anchor to America/Chicago, where the birthday is

Diffstat:
Minternal/config/about.go | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/internal/config/about.go b/internal/config/about.go @@ -5,12 +5,12 @@ import ( _ "time/tzdata" // the box may not ship zoneinfo ) -// HomeZone is the clock the uptime day rolls over on, so the count ticks at -// local midnight instead of 5pm when the server's UTC date changes. -var HomeZone = mustZone("America/Los_Angeles") +// BirthZone is where the birthday happened (Chicago); uptime counts calendar +// days on that clock, not the server's UTC one. +var BirthZone = mustZone("America/Chicago") // Birthday drives the uptime line on the about page. -var Birthday = time.Date(2008, time.April, 20, 0, 0, 0, 0, HomeZone) +var Birthday = time.Date(2008, time.April, 20, 0, 0, 0, 0, BirthZone) func mustZone(name string) *time.Location { loc, err := time.LoadLocation(name)