From: Matthias Schmidt Date: Sun, 26 Jan 2020 08:16:51 +0000 (+0100) Subject: Use constants instead of hardcoded strings in DateFormField X-Git-Tag: 5.2.2~35 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68c8de72f51b270e2c39f388021d82ca4629baa7;p=GitHub%2FWoltLab%2FWCF.git Use constants instead of hardcoded strings in DateFormField --- 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;