Skip to content

locale aware defaultFilename timestamp formatting#117

Closed
victorhaggqvist wants to merge 1 commit intopynicolas:mainfrom
victorhaggqvist:locale-default-filename-datefmt
Closed

locale aware defaultFilename timestamp formatting#117
victorhaggqvist wants to merge 1 commit intopynicolas:mainfrom
victorhaggqvist:locale-default-filename-datefmt

Conversation

@victorhaggqvist
Copy link
Copy Markdown

Makes defaultFilename locale aware in formatting.

Where from docs

  • date SHORT is completely numeric (aside from formatting)
  • time MEDIUM is time including seconds

Which looks to catch the intent behind the static format, but in locale aware formatting. Effectively, the date/time contents remain, but the punctuation and order of date/time parts localize.

where from docs

date SHORT is completely numeric (asside from formatting)
time MEDIUM is time including seconds

which looks to catch the intent behind the static format, but in locale
aware formatting
@pynicolas
Copy link
Copy Markdown
Owner

Thanks for the PR and the explanation.

Before discussing a solution, I'd like to better understand the underlying problem or user need this is addressing.

The current format is intentionally explicit and stable, and changing it impacts more than just localization (ordering, separators, filename safety, predictability, etc.). So this is more of a product decision than a pure implementation detail.

Could you open a GitHub issue to describe:

  • what problem you're seeing with the current behavior
  • in which context it's an issue (user feedback, personal use, locale specifics, etc.)

That would help clarify whether this should be changed. For now, I'd prefer to discuss the use case first before merging a solution.

Thanks again for taking the time to contribute.

@pynicolas
Copy link
Copy Markdown
Owner

See #118.

@pynicolas pynicolas closed this Mar 2, 2026
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