Skip to content

Removed unused timezones mirage fixture#28422

Merged
9larsons merged 1 commit into
mainfrom
remove-unused-timezones-mirage-fixture
Jun 8, 2026
Merged

Removed unused timezones mirage fixture#28422
9larsons merged 1 commit into
mainfrom
remove-unused-timezones-mirage-fixture

Conversation

@9larsons

@9larsons 9larsons commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Removes ghost/admin/mirage/fixtures/timezones.js, which is dead code.

The admin reads the timezone list directly from the @tryghost/timezone-data package in app/instance-initializers/config.js (availableTimezones), so the list never goes through the API. No mirage route or scenario loads this fixture — it was orphaned when the config initializer moved to importing the package directly, and has only drifted out of date since.

Keeping it around just invites pointless maintenance to chase the real package (e.g. #24562, which hand-edited it to track timezone-data 0.5.0 and still didn't match the shipped data). Deleting it is the cleaner fix.

ref #24536

ref #24536

- mirage/fixtures/timezones.js is dead code: admin reads timezones directly from the @tryghost/timezone-data package (app/instance-initializers/config.js), so the list never goes through the API and there is nothing for mirage to mock
- no mirage route or scenario loads the fixture; it was orphaned when the config initializer moved to importing the package and has only drifted since
- removing it instead of hand-maintaining it to match timezone-data, which is what #24562 attempted
@9larsons 9larsons enabled auto-merge (squash) June 8, 2026 18:44
@9larsons 9larsons merged commit 9007836 into main Jun 8, 2026
41 checks passed
@9larsons 9larsons deleted the remove-unused-timezones-mirage-fixture branch June 8, 2026 18: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.

1 participant