Skip to content

[6.x]: Make system timezone configurable during install#18794

Open
AugustMiller wants to merge 15 commits into6.xfrom
feature/installer-timezone
Open

[6.x]: Make system timezone configurable during install#18794
AugustMiller wants to merge 15 commits into6.xfrom
feature/installer-timezone

Conversation

@AugustMiller
Copy link
Copy Markdown
Contributor

@AugustMiller AugustMiller commented May 5, 2026

The Install migration now accepts a $timezone argument.

I've made the necessary changes in the CLI installer, but the GUI will need @brianjhanson’s touch!

  • php artisan craft:install accepts a --timezone argument
  • If none is provided, we display a suggest() TUI to pick from valid timezone strings (or environment variables that contain one).
  • Validators have been updated to use EnvValueRule, and some surrounding logic was simplified.

Questions

  • The installer(s) ask for a timezone, even when project config files are present and that timezone will be used, instead. Room for better UX/DX?
  • Why can I not type suggest()’s info callback as string? The initial "highlighted" value seems to be null which upsets it. Docs suggest that it should receive a string…
  • I am not confident about the shape of the timezone data I added to the install controller’s Inertia response.

I expect this to have at least one collision with #18793, as we both updated some validation rules.

- The installer may ask for a timezone even when it's present in project config.
- Why can I not type `suggest()`’s `info` callback as `string`? The initial "highlighted" value seems to be `null` which upsets it.
- The env var detection is pretty crude. We could just parse the value indiscriminately?
@semanticdiff-com
Copy link
Copy Markdown

Review changes with  SemanticDiff

@AugustMiller AugustMiller marked this pull request as ready for review May 7, 2026 20:58
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