[PHP-DEV] PHP 4.0 Bug #6894 Updated: strftime and 2000-10-29 From: stas <email protected>
Date: 10/30/00

ID: 6894
Updated by: stas
Reported By: martin.m.luethi <email protected>
Status: Closed
Bug Type: Date/time related
Assigned To:
Comments:

Again and again... Not every day has 60*60*24 seconds, when daylight settings are in effect. On the border of daylight settings day can have one hour more or one hour less.

Previous Comments:
---------------------------------------------------------------------------

[2000-09-26 23:03:58] martin.m.luethi <email protected>
hi,

i use following php script:

$actualday = mktime(0,0,0);
for ($i = 0; $i < 60; $i++)
{
  echo strftime("%d.%m.%Y", $actualday)."<br>";
  $actualday += 60*60*24; //= 1 day
}

it just prints out a list with some dates, but why does the date 2000-10-29 (or 2001-10-28 ...) appears twice?

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=6894

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>