php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5407 gmmktime's add "gmajust" but it's upside down
Submitted: 2000-07-06 16:53 UTC Modified: 2000-07-06 19:36 UTC
From: sagawa at sohgoh dot net Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: All?
Private report: No CVE-ID: None
 [2000-07-06 16:53 UTC] sagawa at sohgoh dot net
In datetime.c
line 177
seconds += gmadjust;
shoud be
seconds -= gmadjust;

In old PHP (<=3.0.6?),
subtract gmadjust from seconds.
So this is correct way, I think.

ref.
o Diffs between 1.60 and 1.61
http://cvs.php.net/viewcvs.cgi/php3/functions/datetime.c.diff?r1=1.60&r2=1.61

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-06 18:21 UTC] sagawa at sohgoh dot net
In datetime.c
line 177
seconds += gmadjust;
shoud be
seconds -= gmadjust;

In old PHP (<=3.0.6?),
subtract gmadjust from seconds.
So this is correct way, I think.

 [2000-07-06 19:36 UTC] sagawa at sohgoh dot net
Sorry, I guessed wrong.
That's fine.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 01:01:30 2024 UTC