Skip to content

Commit a52d116

Browse files
Fix formatting of dates in test
Gofmt did not agree with my zero-padded numeric constants.
1 parent e8dbfb6 commit a52d116

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎internal/forms/builder_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func TestInsertionTagReplacer(t *testing.T) {
1616
GPSd: cfg.GPSdConfig{Addr: gpsMockAddr},
1717
}}
1818
location = time.FixedZone("UTC+1", 1*60*60)
19-
now = func() time.Time { return time.Date(1988, 3, 21, 00, 00, 00, 00, location).In(time.UTC) }
19+
now = func() time.Time { return time.Date(1988, 3, 21, 0, 0, 0, 0, location).In(time.UTC) }
2020
tests := map[string]string{
2121
"<ProgramVersion>": "Pat v1.0.0 (test)",
2222
"<Callsign>": "LA5NTA",
@@ -53,7 +53,7 @@ func TestInsertionTagReplacer(t *testing.T) {
5353

5454
func TestBuildXML(t *testing.T) {
5555
location = time.FixedZone("UTC+1", 1*60*60)
56-
now = func() time.Time { return time.Date(1988, 3, 21, 00, 00, 00, 00, location).In(time.UTC) }
56+
now = func() time.Time { return time.Date(1988, 3, 21, 0, 0, 0, 0, location).In(time.UTC) }
5757
b := messageBuilder{
5858
FormsMgr: &Manager{config: Config{
5959
MyCall: "LA5NTA",

0 commit comments

Comments
 (0)