|
11 | 11 |
|
12 | 12 | namespace Symfony\Component\Notifier\Bridge\Discord\Tests;
|
13 | 13 |
|
| 14 | +use DateTimeZone; |
14 | 15 | use PHPUnit\Framework\TestCase;
|
15 | 16 | use Symfony\Component\Notifier\Bridge\Discord\DiscordOptions;
|
16 | 17 | use Symfony\Component\Notifier\Bridge\Discord\Embeds\DiscordAuthorEmbedObject;
|
@@ -40,14 +41,14 @@ public function testDiscordEmbedFields(): void
|
40 | 41 | ->addEmbed((new DiscordEmbed())
|
41 | 42 | ->description('descript.io')
|
42 | 43 | ->url('http://ava.tar/pic.png')
|
43 |
| - ->timestamp(new \DateTime('2020-10-12 9:14:15')) |
| 44 | + ->timestamp(new \DateTime('2020-10-12 9:14:15+0000')) |
44 | 45 | ->color(2021216)
|
45 | 46 | ->title('New song added!')
|
46 | 47 | )
|
47 | 48 | ->addEmbed((new DiscordEmbed())
|
48 | 49 | ->description('descript.io 2')
|
49 | 50 | ->url('http://ava.tar/pic.png')
|
50 |
| - ->timestamp(new \DateTime('2020-10-12 9:14:15')) |
| 51 | + ->timestamp(new \DateTime('2020-10-12 9:14:15+0000')) |
51 | 52 | ->color(2021216)
|
52 | 53 | ->title('New song added!')
|
53 | 54 | );
|
@@ -75,7 +76,7 @@ public function testDiscordEmbedFields(): void
|
75 | 76 | ->addEmbed((new DiscordEmbed())
|
76 | 77 | ->description('descript.io')
|
77 | 78 | ->url('http://ava.tar/pic.png')
|
78 |
| - ->timestamp(new \DateTime('2020-10-12 9:14:15')) |
| 79 | + ->timestamp(new \DateTime('2020-10-12 9:14:15+0000')) |
79 | 80 | ->color(2021216)
|
80 | 81 | ->title('New song added!')
|
81 | 82 | ->footer(
|
|
0 commit comments