@hmcts/ccd-case-ui-toolkit 7.3.0-exui-3066-2 → 7.3.0-exui-3066-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2841,7 +2841,10 @@ class DatePipe {
|
|
|
2841
2841
|
zone = 'utc';
|
|
2842
2842
|
}
|
|
2843
2843
|
const match = value.match(DatePipe.DATE_FORMAT_REGEXP);
|
|
2844
|
-
//
|
|
2844
|
+
// match contains regex capture groups from DATE_FORMAT_REGEXP (ISO 8601 format):
|
|
2845
|
+
// [1] year, [2] month, [3] day, [4] hour, [5] minute, [6] second, [7] milliseconds,
|
|
2846
|
+
// [8] 'Z', [9] timezone offset sign (+-), [10] timezone offset hours,
|
|
2847
|
+
// [11] timezone offset minutes
|
|
2845
2848
|
if (match) {
|
|
2846
2849
|
let momentDate = null;
|
|
2847
2850
|
const hasTime = match[4] && match[5] && match[6];
|