|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-06 13:17 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 08:00:02 2025 UTC |
Description: ------------ I got an update from tzdata on a Debian server due to a daylight saving change here in Argentina (same thing happens on a Fedora 7 server). The problem is that, even when the system sees the correct time, php keeps giving me the *old* hour (CLI and mod_apache). Reproduce code: --------------- $ date mi? feb 6 09:03:57 ARST 2008 $ echo "<?php echo date('H:i') . \"\n\"; ?>"|php 08:04 $ date +%z -0200 $ echo "<?php echo date('Z')/3600 . \"\n\"; ?>"|php -3