php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17472 mktime(), localtime(), etc. broken in Windows
Submitted: 2002-05-28 04:29 UTC Modified: 2002-08-04 04:38 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:3 (100.0%)
From: jasonh at trurocollege dot ac dot uk Assigned:
Status: Wont fix Package: Date/time related
PHP Version: 4.2.0 OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-05-28 04:29 UTC] jasonh at trurocollege dot ac dot uk
Can someone please attempt to implement the work-around I suggested in http://bugs.php.net/bug.php?id=17123 or explain why it wouldn't work?

All that needs to be done is provide wrappers on the native mktime(), localtime(), etc. calls.  I would attempt this myself but I don't have access to the necessary tools so I can't contribute to the CVS.

It's nice to have the documentation updated to highlight the problem with Windows, but that isn't a solution and this problem makes it impossible for me to recommend PHP under Windows for our database activities (some people were born before 1970 so we have to be able to cope with those dates).

Alternatively, maybe somebody knows how every other Windows application copes with this?  JScript, for example, has exactly the same timestamp model and it copes with negative timestamps.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-02 19:04 UTC] k.schroeder@php.net
New comment to closed #17123. I reopen #17123.

Regards, Kai
 [2002-08-04 04:38 UTC] yohgaki@php.net
There should be feature request for this already.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC