Format last modified and creation date label placeholders using the correct timezone.

Fixes issue #54
This commit is contained in:
Jan Böhmer 2020-05-13 20:12:51 +02:00
parent 5302087eba
commit 7b108f8d4b
3 changed files with 6 additions and 6 deletions

View file

@ -59,11 +59,10 @@ class TimestampableElementProviderTest extends WebTestCase
public function dataProvider(): array
{
\Locale::setDefault('en');
$formatted = \IntlDateFormatter::formatObject(new \DateTime('2000-01-01'), \IntlDateFormatter::SHORT);
return [
[$formatted, '[[LAST_MODIFIED]]'],
[$formatted, '[[CREATION_DATE]]'],
['1/1/00, 12:00 AM', '[[LAST_MODIFIED]]'],
['1/1/00, 12:00 AM', '[[CREATION_DATE]]'],
];
}