|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-28 16:48 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 07:00:02 2026 UTC |
Description: ------------ The year and comma placed before the month and day return a timestamp that is 72,420 seconds (~20+ hours) later than the value returned when the year comes after the month and date. Reproduce code: --------------- Example #1: <?php echo strtotime('2007, Feb 1').' '.strtotime('Feb 1, 2007'); ?> Return: 1170382020 1170309600 (and 1170382020 - 1170309600 = 72420) Example #2: <?php echo strtotime('2007, Jun 28').' '.strtotime('Jun 28, 2007'); ?> Return: 1183079220 1183006800 (and 1183079220 - 1183006800 = 72420) Expected result: ---------------- I expect the two values in each different example to yield the same timestamp. Actual result: -------------- The values are always 72,420 seconds different