diff options
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); |