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/art2.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/class/art2.php') diff --git a/app/class/art2.php b/app/class/art2.php index 3ba23cb..e8ae061 100644 --- a/app/class/art2.php +++ b/app/class/art2.php @@ -154,6 +154,10 @@ class Art2 } elseif ($option == 'hrdi') { $now = new DateTimeImmutable(null, timezone_open("Europe/Paris")); return hrdi($this->date->diff($now)); + } elseif ($option == 'pdate') { + return $this->date->format('Y-m-d'); + } elseif ($option == 'ptime') { + return $this->date->format('H:i'); } -- cgit v1.2.3