diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-17 20:32:47 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-17 20:32:47 +0100 |
commit | 47689d1fdfb2c33ee5e00cfe9fe529d6ba3529db (patch) | |
tree | 3a9c85b79822e62a80d8820210c3670e55d96e24 /app/class/controllerart.php | |
parent | b4c5790ef82a4cc248d40c8403e795089d06ab08 (diff) | |
download | wcms-47689d1fdfb2c33ee5e00cfe9fe529d6ba3529db.tar.gz wcms-47689d1fdfb2c33ee5e00cfe9fe529d6ba3529db.zip |
pdate
Diffstat (limited to 'app/class/controllerart.php')
-rw-r--r-- | app/class/controllerart.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/class/controllerart.php b/app/class/controllerart.php index b990237..ab3fec6 100644 --- a/app/class/controllerart.php +++ b/app/class/controllerart.php @@ -155,8 +155,12 @@ class Controllerart extends Controller $_SESSION['workspace']['showrightpanel'] = isset($_POST['workspace']['showrightpanel']); $_SESSION['workspace']['showleftpanel'] = isset($_POST['workspace']['showleftpanel']); + $date = new DateTimeImmutable($_POST['pdate'] . $_POST['ptime'], new DateTimeZone('Europe/Paris')); + $date = ['date' => $date]; + if ($this->importart() && $this->user->canedit()) { $this->art->hydrate($_POST); + $this->art->hydrate($date); $this->art->updateedited(); $this->artmanager->update($this->art); |