Add timezone
This commit is contained in:
parent
ecb7ef88d4
commit
aaea73783c
|
@ -16,7 +16,9 @@ class FormatTalksExtension extends Twig_Extension
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$this->today = (new \DateTime())->format('Y-m-d');
|
||||
$this->today = (new \DateTime())
|
||||
->setTimezone(new \DateTimeZone('Europe/London'))
|
||||
->format('Y-m-d');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue