package task import ( "testing" "time" ) func TestDailyCycleFallsBackWhenLocationMissing(t *testing.T) { svc := &Service{} cycle := svc.dailyCycle(time.Date(2026, 5, 8, 16, 30, 0, 0, time.UTC)) if cycle.Key != "2026-05-09" { t.Fatalf("daily cycle must use UTC+8 fallback when tzdata is missing: %+v", cycle) } }