aboutsummaryrefslogtreecommitdiff
path: root/app/class/controller.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-03-30 20:44:55 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-03-30 20:44:55 +0100
commit20c44426207b8f58fd8ef1145b509913371b2901 (patch)
tree0ce6c9f06e8cca59f5159f2dfaeccf99b896712f /app/class/controller.php
parent60e065fd24d7cd03fa2ebc6cea55d463bc735120 (diff)
downloadwcms-20c44426207b8f58fd8ef1145b509913371b2901.tar.gz
wcms-20c44426207b8f58fd8ef1145b509913371b2901.zip
new feature : upload json as page
Diffstat (limited to 'app/class/controller.php')
-rw-r--r--app/class/controller.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/class/controller.php b/app/class/controller.php
index ce1507a..c4994f8 100644
--- a/app/class/controller.php
+++ b/app/class/controller.php
@@ -15,11 +15,14 @@ class Controller
*/
protected $usermanager;
protected $plates;
+ /** @var DateTimeImmutable */
+ protected $now;
public function __construct($router) {
$this->setuser();
$this->router = $router;
$this->initplates();
+ $this->now = new DateTimeImmutable(null, timezone_open("Europe/Paris"));
}
public function setuser()