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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sagawa at sohgoh dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 13:00:01 2026 UTC