Skip to content

[4.x] Improved Timezone Handling#197

Merged
duncanmcclean merged 3 commits intomasterfrom
utc-dates
May 1, 2025
Merged

[4.x] Improved Timezone Handling#197
duncanmcclean merged 3 commits intomasterfrom
utc-dates

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

@duncanmcclean duncanmcclean commented Mar 4, 2025

This pull request ensures that the new display_timezone config option is taken into account when the SSG sets Carbon's toStringFormat setting.

Goes alongside statamic/cms#11409

@duncanmcclean duncanmcclean marked this pull request as ready for review March 12, 2025 00:12
@duncanmcclean duncanmcclean changed the base branch from 3.x to master May 1, 2025 09:23
@duncanmcclean duncanmcclean changed the title [4.x] UTC Dates [4.x] Improved Timezone Handling May 1, 2025
@duncanmcclean duncanmcclean merged commit 9be49b4 into master May 1, 2025
30 checks passed
@duncanmcclean duncanmcclean deleted the utc-dates branch May 1, 2025 09:56
jesseleite added a commit that referenced this pull request Jul 18, 2025
* Require statamic/cms dev-master for now

We can change this to `^6.0` when an alpha/beta is tagged.

* [4.x] Drop Laravel 10 Support (#200)

* Remove Testbench 8 from composer.json

* Remove PHPUnit 10

* Remove Laravel 10 and PHP 8.1 from testing matrix

* Remove toStringFormat handling for Carbon 2 (#201)

* [4.x] Improved Timezone Handling (#197)

* Take the "display timezone" into account when setting Carbon string format

* Use `Statamic::displayTimezone()`

* Add config to enforce trailing slashes during generation.

* Fix for 404 not generating.

* Assemble absolute URL instead.

* Fix `is404()` logic for hardcoded 404.html destination.

* Handle config (tests still wip).

* Add basic test coverage for generated URLs.

* Add test coverage for our 404 fix.

* Remove experimental note. We can just fix bugs as they're reported.

* Temporary composer constraint until we tag Statamic v6.

---------

Co-authored-by: Duncan McClean <duncan@duncanmcclean.com>
duncanmcclean added a commit that referenced this pull request Sep 22, 2025
* Require statamic/cms dev-master for now

We can change this to `^6.0` when an alpha/beta is tagged.

* [4.x] Drop Laravel 10 Support (#200)

* Remove Testbench 8 from composer.json

* Remove PHPUnit 10

* Remove Laravel 10 and PHP 8.1 from testing matrix

* Remove toStringFormat handling for Carbon 2 (#201)

* [4.x] Improved Timezone Handling (#197)

* Take the "display timezone" into account when setting Carbon string format

* Use `Statamic::displayTimezone()`

* Add config to enforce trailing slashes during generation.

* Fix for 404 not generating.

* Assemble absolute URL instead.

* Fix `is404()` logic for hardcoded 404.html destination.

* Handle config (tests still wip).

* Add basic test coverage for generated URLs.

* Add test coverage for our 404 fix.

* Remove experimental note. We can just fix bugs as they're reported.

* Temporary composer constraint until we tag Statamic v6.

---------

Co-authored-by: Duncan McClean <duncan@duncanmcclean.com>
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