From 126956e006c832c4301354ca3d1aa8691232aa21 Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Mon, 28 Oct 2024 00:00:00 +0000 Subject: [PATCH] Allowed to have offset hour and minutes without a colon. --- src/DataType/AbstractDateTimeDataType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataType/AbstractDateTimeDataType.php b/src/DataType/AbstractDateTimeDataType.php index 18759b8..ef197bf 100644 --- a/src/DataType/AbstractDateTimeDataType.php +++ b/src/DataType/AbstractDateTimeDataType.php @@ -37,7 +37,7 @@ abstract class AbstractDateTimeDataType extends AbstractDataType * include colons as separators. This follows the standard's best practices, * which notes that "The basic format should be avoided in plain text." */ - const PATTERN_ISO8601 = '^(?(?-?\d{4,})(-(?\d{2}))?(-(?\d{2}))?)(?