Skip to content

Avoid global date format mutation - #108

Open
nertzy wants to merge 1 commit into
rdy:masterfrom
nertzy:date-format-global-state
Open

Avoid global date format mutation#108
nertzy wants to merge 1 commit into
rdy:masterfrom
nertzy:date-format-global-state

Conversation

@nertzy

@nertzy nertzy commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

FixtureBuilder temporarily replaced Date::DATE_FORMATS[:default] while generating fixtures. That process-global mutation could affect unrelated work running concurrently and uses a Rails API that now emits a deprecation warning.

Active Record's uncast date attributes already produce ISO-formatted fixture values, so this removes the global override. Regression coverage observes the date format during generation and confirms that generated dates remain ISO formatted.

Fixes #69

@nertzy
nertzy force-pushed the date-format-global-state branch from 499cce0 to 47a8c71 Compare September 3, 2026 19:49
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.

ActiveSupport 7.0.7 deprecates setting default date/time format strings for #to_s

1 participant