Skip to content

Commit a20ea63

Browse files
committed
minor symfony#48042 Run tests with UTC to avoid daylight saving time messing with assertions (MatTheCat)
This PR was merged into the 4.4 branch. Discussion ---------- Run tests with UTC to avoid daylight saving time messing with assertions | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Pipelines are failing today (like https://github.com/symfony/symfony/actions/runs/3350921526/jobs/5552038137#step:7:710) because it’s the eve of setting clocks back by one hour in the Europe/Paris timezone, so one day from now is 25 instead of 24 hours. This PR just changes the timezone to UTC where there is no daylight saving time. Commits ------- f56107c Run tests with UTC to avoid daylight saving time messing with assertions
2 parents b6db638 + f56107c commit a20ea63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
with:
9393
coverage: "none"
9494
extensions: "memcached,redis-5.3.4,xsl,ldap"
95-
ini-values: date.timezone=Europe/Paris,memory_limit=-1,default_socket_timeout=10,session.gc_probability=0,apc.enable_cli=1,zend.assertions=1
95+
ini-values: date.timezone=UTC,memory_limit=-1,default_socket_timeout=10,session.gc_probability=0,apc.enable_cli=1,zend.assertions=1
9696
php-version: "${{ matrix.php }}"
9797

9898
- name: Load fixtures

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: shivammathur/setup-php@v2
4949
with:
5050
coverage: "none"
51-
ini-values: date.timezone=Europe/Paris,memory_limit=-1,default_socket_timeout=10,session.gc_probability=0,apc.enable_cli=1,zend.assertions=1
51+
ini-values: date.timezone=UTC,memory_limit=-1,default_socket_timeout=10,session.gc_probability=0,apc.enable_cli=1,zend.assertions=1
5252
php-version: "${{ matrix.php }}"
5353
extensions: "${{ env.extensions }}"
5454
tools: flex

0 commit comments

Comments
 (0)