From 47689d1fdfb2c33ee5e00cfe9fe529d6ba3529db Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sat, 17 Nov 2018 20:32:47 +0100 Subject: pdate --- app/class/controllerart.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/class/controllerart.php') 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); -- cgit v1.2.3