|
|||
|
hello,
there is a strange behaviour of Zend_Date... Code:
$date1 = array('year' => '2008', 'month' =>'4', 'day' =>'13', 'hour' => '10', 'minute' =>'45', 'second' => '12');
$show_date1 = new Zend_Date($date1);
echo $show_date1;
//returns: 2008-04-13 10:45:12
Code:
$date2 = array('year' => '2008', 'month' =>'4', 'day' =>'13', 'hour' => '23', 'minute' =>'45', 'second' => '12');
$show_date2 = new Zend_Date($date2);
echo $show_date2;
//returns: 2008-04-14 23:45:12
'day' = 'day' + 1 can anyone tell me something about this? Code:
echo Zend_Version::VERSION; //returns: 1.5.1 |
|
|||
|
Hi!
I know this doen't help but I have the same problem. I just can't find the code anymore. I had to subtract one hour to get to correct date. Zend_Date is a monster! ![]() I think my problem was, that I reused the same Zend_Date object (which isn't the case in your example) and forgot to level the time correctly. When I find my code I'll post it here. Dave |
![]() |
| Thread Tools | |
| Display Modes | |
|
|