[php-src] PR #20764: Fix timezone offset with seconds losing precision

From: Date: Mon, 22 Dec 2025 23:30:07 +0000
Subject: [php-src] PR #20764: Fix timezone offset with seconds losing precision
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34357@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20764 Author: ndossche There are two issues: 1. The 'e' formatter doesn't output the seconds of the timezone even if it has seconds. 2. var_dump(), (array) cast, serialization, ... don't include the timezone second offset in the output. This means that, for example, serializing and then unserializing a date object loses the seconds of the timezone. This can be observed by comparing the output of getTimezone() for $dt vs the unserialized object in the provided test.

« previous php.git-pulls (#34357) next »