Skip to content

Avoid global date format mutation - #108

Merged
nertzy merged 1 commit into
rdy:masterfrom
nertzy:date-format-global-state
Sep 4, 2026
Merged

Avoid global date format mutation#108
nertzy merged 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
@nertzy
nertzy merged commit 7fe07b2 into rdy:master Sep 4, 2026
10 checks passed
@nertzy
nertzy deleted the date-format-global-state branch September 4, 2026 21:48
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