|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-11 07:27 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 22:00:01 2025 UTC |
Description: ------------ It doesnt count to the right day. could be a summer/wintertime bug? Reproduce code: --------------- $order["journey_stay_first"] = 1161900000; $adddays = $order["journey_stay_first"] + ( $_GET["x"] * 24 * 60 * 60); $journey_first_stay_date = date('ymd', $order["journey_stay_first"]); $journey_last_stay_date = date('ymd', $adddays); Expected result: ---------------- $order["journey_stay_first"] = 1161900000; x, start, end: 0, 06 10 27 12:00:00, 06 10 27 12:00:01 1, 06 10 27 12:00:00, 06 10 28 12:00:01 2, 06 10 27 12:00:00, 06 10 29 12:00:01 3, 06 10 27 12:00:00, 06 10 30 11:00:01 4, 06 10 27 12:00:00, 06 10 31 11:00:01 Actual result: -------------- $order["journey_stay_first"] = 1161900000; x, start, end: 0, 06 10 27 12:00:00, 06 10 27 12:00:01 1, 06 10 27 12:00:00, 06 10 28 12:00:01 2, 06 10 27 12:00:00, 06 10 29 12:00:01 3, 06 10 27 12:00:00, 06 10 29 11:00:01 4, 06 10 27 12:00:00, 06 10 30 11:00:01