- 'value' => '2004-12-19T10:19:42-0600',
- 'expected' => '2004-12-19T10:19:42',
+ 'value' => '2004-12-19 10:19:42',
+ 'expected' => '2004-12-19 16:19:42 UTC',
+ ],
+ 'timezone_from' => [
+ 'configuration' => [
+ 'from_format' => 'Y-m-d h:i:s',
+ 'to_format' => 'Y-m-d h:i:s e',
+ 'from_timezone' => 'America/Managua',
+ ],
+ 'value' => '2004-11-19 10:25:33',
+ // Unit tests use Australia/Sydney timezone, so date value will be
+ // converted from America/Managua to Australia/Sydney timezone.
+ 'expected' => '2004-11-20 03:25:33 Australia/Sydney',
+ ],
+ 'timezone_to' => [
+ 'configuration' => [
+ 'from_format' => 'Y-m-d H:i:s',
+ 'to_format' => 'Y-m-d H:i:s e',
+ 'to_timezone' => 'America/Managua',
+ ],
+ 'value' => '2004-12-19 10:19:42',
+ // Unit tests use Australia/Sydney timezone, so date value will be
+ // converted from Australia/Sydney to America/Managua timezone.
+ 'expected' => '2004-12-18 17:19:42 America/Managua',