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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jasonh at trurocollege dot ac dot uk
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC