|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-11 05:27 UTC] john at jcoppens dot com
[2008-01-11 08:23 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 22:00:01 2025 UTC |
Description: ------------ When printing (using strftime) the local time, this is one hour off, as if the new summer time is not taken into account: It is now 03:02, and the time reported is 02:02. This is happening only in PHP. The system time is set to GMT, and the 'date' command reports correctly. TCL is also reporting the date correctly and an offset of -0200. PHP reports -0300. I wonder if PHP is administering the timezones separately from the operating system (I already updated the system locale to the new savings time). I tried setlocale("LC_TIME", "es_AR") and "ar_AR" (which is probably incorrect) What do I have to do to correct this? Thanks John Reproduce code: --------------- Just print the date, using strftime, in the argentinian time zone. Expected result: ---------------- Time should, at this moment, be GMT-2, not GMT-3 (which is normal in winter) Actual result: -------------- GMT-3