[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.216.188.136: ~ $
--TEST--
"date" filter
--TEMPLATE--
{{ date1|date }}
{{ date1|date('d/m/Y') }}
{{ date1|date('d/m/Y H:i:s', 'Asia/Hong_Kong') }}
{{ date1|date('d/m/Y H:i:s P', 'Asia/Hong_Kong') }}
{{ date1|date('d/m/Y H:i:s P', 'America/Chicago') }}
{{ date1|date('e') }}
{{ date1|date('d/m/Y H:i:s') }}

{{ date2|date }}
{{ date2|date('d/m/Y') }}
{{ date2|date('d/m/Y H:i:s', 'Asia/Hong_Kong') }}
{{ date2|date('d/m/Y H:i:s', timezone1) }}
{{ date2|date('d/m/Y H:i:s') }}

{{ date3|date }}
{{ date3|date('d/m/Y') }}

{{ date4|date }}
{{ date4|date('d/m/Y') }}

{{ date5|date }}
{{ date5|date('d/m/Y') }}

{{ date6|date('d/m/Y H:i:s P', 'Europe/Paris') }}
{{ date6|date('d/m/Y H:i:s P', 'Asia/Hong_Kong') }}
{{ date6|date('d/m/Y H:i:s P', false) }}
{{ date6|date('e', 'Europe/Paris') }}
{{ date6|date('e', false) }}

{{ date7|date }}
{{ date7|date(timezone='Europe/Paris') }}
{{ date7|date(timezone='Asia/Hong_Kong') }}
{{ date7|date(timezone=false) }}
{{ date7|date(timezone='Indian/Mauritius') }}

{{ '2010-01-28 15:00:00'|date(timezone="Europe/Paris") }}
{{ '2010-01-28 15:00:00'|date(timezone="Asia/Hong_Kong") }}
--DATA--
date_default_timezone_set('Europe/Paris');
return [
    'date1' => mktime(13, 45, 0, 10, 4, 2010),
    'date2' => new \DateTime('2010-10-04 13:45'),
    'date3' => '2010-10-04 13:45',
    'date4' => 1286199900, // \DateTime::createFromFormat('Y-m-d H:i', '2010-10-04 13:45', new \DateTimeZone('UTC'))->getTimestamp() -- A unixtimestamp is always GMT
    'date5' => -189291360, // \DateTime::createFromFormat('Y-m-d H:i', '1964-01-02 03:04', new \DateTimeZone('UTC'))->getTimestamp(),
    'date6' => new \DateTime('2010-10-04 13:45', new \DateTimeZone('America/New_York')),
    'date7' => '2010-01-28T15:00:00+04:00',
    'timezone1' => new \DateTimeZone('America/New_York'),
]
--EXPECT--
October 4, 2010 13:45
04/10/2010
04/10/2010 19:45:00
04/10/2010 19:45:00 +08:00
04/10/2010 06:45:00 -05:00
Europe/Paris
04/10/2010 13:45:00

October 4, 2010 13:45
04/10/2010
04/10/2010 19:45:00
04/10/2010 07:45:00
04/10/2010 13:45:00

October 4, 2010 13:45
04/10/2010

October 4, 2010 15:45
04/10/2010

January 2, 1964 04:04
02/01/1964

04/10/2010 19:45:00 +02:00
05/10/2010 01:45:00 +08:00
04/10/2010 13:45:00 -04:00
Europe/Paris
America/New_York

January 28, 2010 12:00
January 28, 2010 12:00
January 28, 2010 19:00
January 28, 2010 15:00
January 28, 2010 15:00

January 28, 2010 15:00
January 28, 2010 22:00

Filemanager

Name Type Size Permission Actions
abs.test File 391 B 0644
batch.test File 694 B 0644
batch_float.test File 667 B 0644
batch_with_empty_fill.test File 563 B 0644
batch_with_exact_elements.test File 772 B 0644
batch_with_fill.test File 575 B 0644
batch_with_keys.test File 250 B 0644
batch_with_more_elements.test File 535 B 0644
batch_with_zero_elements.test File 148 B 0644
column.test File 311 B 0644
convert_encoding.test File 218 B 0644
date.test File 2.35 KB 0644
date_default_format.test File 316 B 0644
date_default_format_interval.test File 331 B 0644
date_immutable.test File 984 B 0644
date_interval.test File 420 B 0644
date_modify.test File 339 B 0644
date_namedargs.test File 418 B 0644
default.test File 4.19 KB 0644
dynamic_filter.test File 128 B 0644
escape.test File 106 B 0644
escape_html_attr.test File 199 B 0644
escape_javascript.test File 133 B 0644
escape_non_supported_charset.test File 148 B 0644
filter.test File 1.39 KB 0644
first.test File 251 B 0644
force_escape.test File 295 B 0644
format.test File 137 B 0644
join.test File 782 B 0644
json_encode.test File 229 B 0644
last.test File 244 B 0644
length.test File 1.05 KB 0644
length_utf8.test File 177 B 0644
map.test File 872 B 0644
merge.test File 553 B 0644
nl2br.test File 377 B 0644
number_format.test File 300 B 0644
number_format_default.test File 446 B 0644
reduce.test File 264 B 0644
replace.test File 446 B 0644
replace_invalid_arg.test File 314 B 0644
reverse.test File 427 B 0644
round.test File 257 B 0644
slice.test File 996 B 0644
sort.test File 261 B 0644
sort_with_arrow.test File 490 B 0644
spaceless.test File 163 B 0644
special_chars.test File 94 B 0644
split.test File 535 B 0644
split_utf8.test File 470 B 0644
static_calls.test File 170 B 0644
trim.test File 686 B 0644
urlencode.test File 492 B 0644