Skip to content

Commit 822914d

Browse files
committed
1 parent 0f1743c commit 822914d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Fixed a bug where batched jobs with a configured limit could be repeated endlessly. ([#13387](https://github.com/craftcms/cms/issues/13387))
1010
- Fixed an error that could occur if `null` was passed to `craft\elements\MatrixBlock::setOwner()`.
1111
- Fixed a bug where eager-loaded categories were always loaded in the structure-defined order, even if the Categories field didn’t have “Maintain hierarchy” enabled. ([#13394](https://github.com/craftcms/cms/issues/13394))
12+
- Fixed a bug where time inputs weren’t handling malformed values properly if ICU 72.1 was installed. ([#13381](https://github.com/craftcms/cms/issues/13381))
1213

1314
## 4.4.15 - 2023-07-03
1415

src/helpers/DateTimeHelper.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,13 @@ private static function _parseTime(string $value): array
878878
$format = str_replace('A', '', $format) . 'A';
879879
}
880880

881-
return [$value, $format];
881+
// replace narrow non-breaking spaces with normal spaces, which are
882+
// handled a bit more gracefully by DateTime::createFromFormat()
883+
// (see https://github.com/php/php-src/issues/11600)
884+
return [
885+
str_replace("\u{202f}", ' ', $value),
886+
str_replace("\u{202f}", ' ', $format),
887+
];
882888
}
883889

884890
/**

0 commit comments

Comments
 (0)