fix(go): pass raw value to FormatDate so numeric dates format #21
Reference in New Issue
Block a user
Delete Branch "fix/go-date-format"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
go/internal/services/membership/sources.go: transaction-row parser now passesrow[idxDate]directly tomatching.FormatDate(via a newgetRawhelper) instead of stringifying first.float64(Sheets serial-day numbers since 1899-12-30). Pre-stringifying viafmt.Sprint(row[i])produced"46147"and defeatedFormatDate'scase float64:dispatch, so the value leaked through unchanged instead of becoming"2026-05-05".make parity(M5.4): everytransactions[].dateon/api/adultsand/api/juniorsshowed Python"2026-05-05"vs Go"46147".sources_test.go::TestLoadTransactionsextended with a numeric-serial-day row.Test plan
go test ./internal/services/membership/...— green (incl. new regression case)go test ./...+golangci-lint run ./...— cleanmake web-go;curl localhost:8080/api/adults | jq '.member_data | to_entries[0].value.months | to_entries[].value.transactions[]?.date' | head— returns YYYY-MM-DD strings, no integers🤖 Generated with Claude Code