--TEST-- "date" function --TEMPLATE-- {{ date(date, "America/New_York")|date('d/m/Y H:i:s P', false) }} {{ date(timezone="America/New_York", date=date)|date('d/m/Y H:i:s P', false) }} --DATA-- date_default_timezone_set('UTC'); return array('date' => mktime(13, 45, 0, 10, 4, 2010)) --EXPECT-- 04/10/2010 09:45:00 -04:00 04/10/2010 09:45:00 -04:00
info at phpclasses dot org