--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 ['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
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
include | Folder | 0755 |
|
|
attribute.test | File | 502 B | 0644 |
|
block.test | File | 245 B | 0644 |
|
block_with_template.test | File | 515 B | 0644 |
|
block_without_name.test | File | 361 B | 0644 |
|
block_without_parent.test | File | 416 B | 0644 |
|
constant.test | File | 234 B | 0644 |
|
cycle.test | File | 295 B | 0644 |
|
date.test | File | 965 B | 0644 |
|
date_namedargs.test | File | 342 B | 0644 |
|
dump.test | File | 291 B | 0644 |
|
dump_array.test | File | 472 B | 0644 |
|
dynamic_function.test | File | 132 B | 0644 |
|
include_template_from_string.test | File | 243 B | 0644 |
|
magic_call.test | File | 98 B | 0644 |
|
magic_static_call.test | File | 164 B | 0644 |
|
max.test | File | 187 B | 0644 |
|
min.test | File | 188 B | 0644 |
|
range.test | File | 129 B | 0644 |
|
recursive_block_with_inheritance.test | File | 1.1 KB | 0644 |
|
source.test | File | 169 B | 0644 |
|
special_chars.test | File | 97 B | 0644 |
|
static_calls.test | File | 174 B | 0644 |
|
template_from_string.test | File | 451 B | 0644 |
|
template_from_string_error.test | File | 313 B | 0644 |
|
undefined_block.test | File | 416 B | 0644 |
|
undefined_block_deep.test | File | 558 B | 0644 |
|