From a3d4c73fd10bf91b67873d6efd8b4557476672e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Mon, 27 Jul 2026 11:07:14 +0900 Subject: [PATCH] Set the timezone in the date_sun_info() example The example formats timestamps with date(), so its output followed the timezone of whoever ran it and could not be pinned down: the recorded values match no timezone on any PHP version I could test. The coordinates are Jerusalem, so the times are reported in that zone, as the polar night example below already does for Prudhoe Bay. --- .../datetime/functions/date-sun-info.xml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/reference/datetime/functions/date-sun-info.xml b/reference/datetime/functions/date-sun-info.xml index d7fada248ca6..fed2c2406ef3 100644 --- a/reference/datetime/functions/date-sun-info.xml +++ b/reference/datetime/functions/date-sun-info.xml @@ -175,6 +175,7 @@ $val) { echo "$key: " . date("H:i:s", $val) . "\n"; @@ -184,15 +185,15 @@ foreach ($sun_info as $key => $val) { &example.outputs;