[php-src] PR #20997: Fix GH-13857: date_diff with different timezones returns wrong result.
| From: | khaledalam | Date: | Wed, 21 Jan 2026 20:36:11 +0000 |
| Subject: | [php-src] PR #20997: Fix GH-13857: date_diff with different timezones returns wrong result. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34628@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20997
Author: khaledalam
# Description
Fix #13857
date_diff() returning incorrect results when comparing DateTime objects with different timezones
where the wall-clock date order is inverted relative to actual time.
---
Use SSE diff when wall-clock dates are inverted.