Skip to content

Conversation

@mcncl
Copy link
Owner

@mcncl mcncl commented Dec 16, 2025

Description

Improves date formatting by supporting a region config, us or eu and handles ambiguous dates by defaulting to us, outputs a note to inform user in case dates don't match expectations.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ⚡ Performance improvement

Changes Made

  • implements a date config option so users can define either us or eu standard dating formats
  • sets the default to us
    • where ambiguous dates used with no config, eg 06/05/2025, we default to us and add a comment to the struct field
  • supports setting in both flag and .gotyper.yaml file

Signed-off-by: Ben McNicholl <git@benmcnicholl.com>
@mcncl mcncl enabled auto-merge (squash) December 16, 2025 10:19
@mcncl mcncl disabled auto-merge December 16, 2025 10:20
@mcncl mcncl merged commit ea9dcc8 into main Dec 16, 2025
4 checks passed
@mcncl mcncl deleted the bm/date_formatting branch December 16, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants