From 68c8de72f51b270e2c39f388021d82ca4629baa7 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 26 Jan 2020 09:16:51 +0100 Subject: [PATCH] Use constants instead of hardcoded strings in DateFormField --- .../lib/system/form/builder/field/DateFormField.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php index ca3ddb9cde..f404685737 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php @@ -360,10 +360,10 @@ class DateFormField extends AbstractFormField implements IAutoFocusFormField, II } if ($this->supportsTime()) { - parent::value($dateTime->format('Y-m-d\TH:i:sP')); + parent::value($dateTime->format(static::TIME_FORMAT)); } else { - parent::value($dateTime->format('Y-m-d')); + parent::value($dateTime->format(static::DATE_FORMAT)); } return $this; -- 2.20.1