Code commits
phpBB Master
-
Marc 92a71660718cd1a3aa5d49da1d6bc9a9711809e3
Merge pull request #6948 from marc1706/ticket/17624
[ticket/17624] Use timezone independent calls to strtotime in tests -
Marc a3b8cf4c8688396d4ce35b60b3396c40e30ee06b m
[ticket/17624] Ensure test can be run independently
PHPBB-17624- tests/datetime/from_format_test.php (version a3b8cf4c8688396d4ce35b60b3396c40e30ee06b)
-
Marc 4754b5f23b11fce75dc433a16a44d76f5dda9d80 m
[ticket/17624] Use time equivalent strtotime calls instead of time
PHPBB-17624- tests/datetime/from_format_test.php (version 4754b5f23b11fce75dc433a16a44d76f5dda9d80)
-
Andy Vandenberghe <andreasvdberghe@avathar.be> ddcf8f16d2dd254e5c74fb568d9ce83334f74db0 m
[ticket/17624] Fix datetime edge case tests failing in non-UTC timezones
The edge case test data used strtotime('yesterday'/'today'/'tomorrow')
which computes timestamps in the local timezone, then formatted them
with gmdate() which outputs in UTC. When the local timezone is ahead
of UTC, this shifts the date by one day, causing consistent failures.
Replace with time() arithmetic (time() - 86400, time(), time() + 86400)
which is timezone-agnostic and matches the pattern used by the other
test cases in the same data provider.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PHPBB-17624- tests/datetime/from_format_test.php (version ddcf8f16d2dd254e5c74fb568d9ce83334f74db0)

