Add timezone

This commit is contained in:
Oliver Davies 2018-08-01 00:27:13 +01:00
parent ecb7ef88d4
commit aaea73783c

View file

@ -16,7 +16,9 @@ class FormatTalksExtension extends Twig_Extension
public function __construct() public function __construct()
{ {
$this->today = (new \DateTime())->format('Y-m-d'); $this->today = (new \DateTime())
->setTimezone(new \DateTimeZone('Europe/London'))
->format('Y-m-d');
} }
/** /**