|  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
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 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.


Add a Patch

Pull Requests

Add a Pull Request


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

Regards, Kai
 [2002-08-04 04:38 UTC]
There should be feature request for this already.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 17:01:30 2024 UTC