Skip to content

Commit 44db8ce

Browse files
authored
Merge pull request #8569 from ProcessMaker/bugfix/FOUR-21604
bugfix/FOUR-21604 Display Screen moustache syntax is rendering data as a date
2 parents a2b812d + 977879a commit 44db8ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ProcessMaker/Helpers/DataTypeHelper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ private static function isDate($value)
1010
{
1111
if (is_string($value)) {
1212
if (strlen($value) > 5) {
13+
if (!preg_match('/\d{4}-\d{2}-\d{2}/', $value)) {
14+
return false;
15+
}
1316
try {
1417
$parsed = Carbon::parse($value);
1518
if ($parsed->isMidnight()) {

0 commit comments

Comments
 (0)