Skip to content

Commit 16f33d6

Browse files
committed
minor #17746 [Validator] Fix a valid Date and Time constraint format (adnen-chouibi)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Validator] Fix a valid Date and Time constraint format I noticed that the date and time format specified at the start of the documentation is not correct, it should be **Y-m-d** for Date and **H:i:s** for Time instead of YYYY-MM-DD and HH:MM:SS Commits ------- a472b6e [Validator] Fix a valid Date and Time constraint format
2 parents bae564a + a472b6e commit 16f33d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

reference/constraints/Date.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Date
22
====
33

44
Validates that a value is a valid date, meaning a string (or an object that can
5-
be cast into a string) that follows a valid ``YYYY-MM-DD`` format.
5+
be cast into a string) that follows a valid ``Y-m-d`` format.
66

77
========== ===================================================================
88
Applies to :ref:`property or method <validation-property-target>`

reference/constraints/Time.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Time
22
====
33

44
Validates that a value is a valid time, meaning a string (or an object that can
5-
be cast into a string) that follows a valid ``HH:MM:SS`` format.
5+
be cast into a string) that follows a valid ``H:i:s`` format.
66

77
========== ===================================================================
88
Applies to :ref:`property or method <validation-property-target>`

0 commit comments

Comments
 (0)