Skip to content

[pull] develop from codeigniter4:develop - #80

Merged
pull[bot] merged 2 commits into
gr8man:developfrom
codeigniter4:develop
Sep 14, 2026
Merged

pull[bot] merged 2 commits into
gr8man:developfrom
codeigniter4:develop

Conversation

@pull

@pull pull Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

paulbalandan and others added 2 commits September 14, 2026 12:57
…d `tomorrow()` across timezones (#10532)

* fix(I18n): fix timezone and testNow calculation in Time::today(), yesterday(), and tomorrow()

- Compute start of day relative to the requested timezone instead of the server default timezone
- Respect Time::setTestNow() mock instance in today(), yesterday(), and tomorrow()
- Add unit tests covering date boundary transitions across different timezones
- Add changelog entry in v4.7.5.rst

* Update user_guide_src/source/changelogs/v4.7.5.rst

Co-authored-by: neznaika0 <ozornick.ks@gmail.com>

* Fix multiple bugs in Files, Helpers, Honeypot, I18n, Logger, and Cache

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* fix(I18n): address review suggestions for Time::today/yesterday/tomorrow

Use new static(null) instead of static::now() to avoid coupling overridable extension points, and freeze time in testTodayLocalized to prevent intermittent failure across timezones.

* Update system/I18n/TimeTrait.php

Co-authored-by: Michal Sniatala <michal@sniatala.pl>

* Update tests/system/I18n/TimeTest.php

Co-authored-by: Michal Sniatala <michal@sniatala.pl>

* Update system/I18n/TimeTrait.php

Co-authored-by: Michal Sniatala <michal@sniatala.pl>

* Update tests/system/I18n/TimeTest.php

Co-authored-by: Michal Sniatala <michal@sniatala.pl>

* style: correct indentation in TimeTest

---------

Co-authored-by: neznaika0 <ozornick.ks@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
@pull pull Bot locked and limited conversation to collaborators Sep 14, 2026
@pull pull Bot added the ⤵️ pull label Sep 14, 2026
@pull
pull Bot merged commit 01fd6ee into gr8man:develop Sep 14, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants