Problem creating a date before 1970 on Fedora

From: Date: Mon, 13 Sep 2004 17:03:09 +0000
Subject: Problem creating a date before 1970 on Fedora
Groups: php.general 
Request: Send a blank email to php-general+get-196526@lists.php.net to get a copy of this message
Howdy, I would assume this to be a common problem, but as I wrote to this list myself a couple of days ago I was only aware of it's existence on windows systems. Here's some sample code 1 <?php 2 $date = strtotime('12 feb 1950'); 3 print $date.': '.date('r', $date)."\n"; 4 $date = mktime(0,0,0,2,12,1950); 5 print $date.': '.date('r', $date)."\n"; 6 ?> And this is it's output: -1: Thu, 1 Jan 1970 00:59:59 +0100 -3662: Wed, 31 Dec 1969 23:58:58 +0100 My search on google didn't help me out, the docs say that it should work and I can remember me having used such code and got it working. Please fella's, what am I missing? Wouter

« previous php.general (#196526) next »