php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30342 localtime not working properly
Submitted: 2004-10-06 20:54 UTC Modified: 2004-10-07 09:08 UTC
From: ski_sanjay at yahoo dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.3.9 OS: RH Linux 9.0
Private report: No CVE-ID: None
 [2004-10-06 20:54 UTC] ski_sanjay at yahoo dot com
Description:
------------
One of the parameters of array returned by the localtime is the daylight savings flag(tm_isdst). If you change the system time via shell command and then execute a PHP script which calls localtime() from the browser (not from shell, this is important), then you will find that localtime is returning wrong daylight savings flag. Unless one does a hard webserver restart localtime does not 
reflect the changes.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-07 09:08 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

That\'s how it works ... isn\'t a PHP issue either, merely an operating system one.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 09:01:30 2024 UTC