change default date format

This commit is contained in:
Sebastian Sdorra
2012-11-15 16:07:55 +01:00
parent 74f9c29855
commit cf1586f7b1

View File

@@ -36,7 +36,7 @@ Ext.apply(Ext.util.Format, {
if ( value != null && (value > 0 || value.length > 0)){
var df = state.clientConfig.dateFormat;
if ( df == null || df.length == 0 || ! Ext.isDefined(value) ){
df = "Y-m-d H:i:s";
df = "YYYY-MM-DD HH:mm:ss";
}
result = moment(value).format(df);
}