]>
Commit | Line | Data |
---|---|---|
4f5b44bd NL |
1 | --TEST-- |
2 | "date" function | |
3 | --TEMPLATE-- | |
4 | {{ date(date, "America/New_York")|date('d/m/Y H:i:s P', false) }} | |
5 | {{ date(timezone="America/New_York", date=date)|date('d/m/Y H:i:s P', false) }} | |
6 | --DATA-- | |
7 | date_default_timezone_set('UTC'); | |
8 | return array('date' => mktime(13, 45, 0, 10, 4, 2010)) | |
9 | --EXPECT-- | |
10 | 04/10/2010 09:45:00 -04:00 | |
11 | 04/10/2010 09:45:00 -04:00 |