dst and broken php function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

I already sent this to the php list, but since it was from the dst update, I thought I'd send it here too.....

   Hi everyone,

   I was hoping a problem like this wouldn't arise, but it happened :(

After the dst updates on my fedora box, this broke, and worked fine before.. now gives me 3/10 instead of 3/11 for strtotime("last sunday").... anyone
   know why? 3/10 was saturday!



   $recent_period = strtotime('last sunday');
   echo date("Y-m-d", $recent_period);
   print_r($periods);
   $test_recent_period = array_search($recent_period, $periods);
   if ($test_recent_period == '')
     $recent_period = strtotime('last sunday', $recent_period);





   Thanks,
   Jake



Thanks,
Jake

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux