object(Fuel\Core\Date)#29 (2) { ["timestamp":protected]=> int(-1822890014) ["timezone":protected]=> string(15) "Europe/Brussels" }
Phili ppe wrote on Tuesday 27th of March 2012:Hello, I've a problem with Date::format function i fetch in table a mysql datetime and - before Date::create_from_string : 2012-03-27 17:39:46 - after Date::create_from_string :object(Fuel\Core\Date)#29 (2) { ["timestamp":protected]=> int(-1822890014) ["timezone":protected]=> string(15) "Europe/Brussels" }
- after ->format( 'eu_full' ) : 17:39, 27 mars 1912. The years are different after format calling.
I try to change the timezone but it does not change. somone has an idea to help me ? phil
Phili ppe wrote on Tuesday 27th of March 2012:- before Date::create_from_string : 2012-03-27 17:39:46 - after Date::create_from_string :object(Fuel\Core\Date)#29 (2) { ["timestamp":protected]=> int(-1822890014) ["timezone":protected]=> string(15) "Europe/Brussels" }
$test = Date::create_from_string('2012-03-27 17:39:46','mysql');and i'am on windows.
'tm_year' => date('y', $ts),with
'tm_year' => date('Y', $ts),to have a full numeric representation of year (4 digits), my problem is revolved
It looks like you're new here. If you want to get involved, click one of these buttons!