Display the updated_at field using the site timezone

This commit changes the logic to display the updated_at field for tasks
in the system status page to use the site timezone.

[MAILPOET-3692]
This commit is contained in:
Rodrigo Primo
2021-09-15 12:14:09 -03:00
committed by Veljko V
parent 9acfe4fbee
commit a25a6db1f5
3 changed files with 7 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ class StateTest extends \MailPoetTest {
expect($data[1]['id'])->equals(1);
expect($data[1]['type'])->equals(SendingTask::TASK_TYPE);
expect(is_int($data[1]['priority']))->true();
expect(is_int($data[1]['updated_at']))->true();
expect(is_string($data[1]['updated_at']))->true();
expect($data[1])->hasKey('scheduled_at');
expect($data[1]['status'])->notEmpty();
expect($data[1])->hasKey('newsletter');