(t *testing.T)
| 20 | if got != want { |
| 21 | t.Errorf("formatTimestamp = %q, want %q", got, want) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // A recording carries the zone it was recorded in, and that is the wall-clock time the |
| 26 | // reader recognizes. Converting to UTC first moved every hour it printed: a time track |
| 27 | // started at 09:00 in Berlin read as 07:00. |
| 28 | func TestFormatTimestampKeepsTheRecordingsOwnZone(t *testing.T) { |
| 29 | berlin := time.FixedZone("CEST", 2*60*60) |
| 30 | ts := time.Date(2026, 8, 21, 9, 0, 0, 0, berlin) |
| 31 | got := formatTimestamp(ts) |
| 32 | want := "2026-08-21T09:00" |
nothing calls this directly
no test coverage detected