Skip to content

Commit 5e917f1

Browse files
Merge pull request #4908 in SW/shopware from SW-16361/5.2/fix-article-custom-date-attribute to 5.2
* commit '6641138b26f3720a4b98725430901c363a3e493a': SW-16361 - Fix article custom datefields format
2 parents a64f83e + 6641138 commit 5e917f1

File tree

1 file changed

+1
-1
lines changed
  • themes/Backend/ExtJs/backend/base/component/element

1 file changed

+1
-1
lines changed

themes/Backend/ExtJs/backend/base/component/element/date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Ext.define('Shopware.apps.Base.view.element.Date', {
4141
if(!value) {
4242
return null;
4343
} else if (typeof(value) == 'string') {
44-
return new Date(value);
44+
return (value === "0000-00-00") ? null : new Date(value);
4545
} else {
4646
return value;
4747
}

0 commit comments

Comments
 (0)