Skip to content

Commit 858c41f

Browse files
committed
Merge branch 'pu/ps/dateFormat' into 'main'
fix(lib/Ext): set default date format for date fields See merge request tine20/tine20!6449
2 parents 8a1e3bf + 05cc692 commit 858c41f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tine20/library/ExtJS/src/data/DataField.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const Field = function(config){
111111
var d = c1(v);
112112
if (isDate(d)) {
113113
d.toJSON = function() {
114-
return this.format(config.dateFormat);
114+
return this.format(config.dateFormat || 'Y-m-d H:i:s');
115115
}
116116
}
117117
return d;

0 commit comments

Comments
 (0)