@@ -74,22 +74,25 @@ function output(data, argv) {
7474 dateFormatter = Style . dateDiff ;
7575 break ;
7676 default :
77- dateFormatter = input => input instanceof Date ? moment ( input ) . format ( dateFormat ) : input ;
77+ dateFormatter = input => input instanceof Date ? moment ( input )
78+ . format ( dateFormat ) : input ;
7879 }
7980
8081 info = _ . mapValues ( info , dateFormatter ) ;
8182 }
8283
83- // if no pretty flag and no dateFormat - force apply specific entity date format
84- if ( ! pretty && ( ! dateFormat || dateFormat === 'default' ) ) {
85- const formatter = FormatterRegistry . get ( entities [ 0 ] . constructor . name ) ;
86- _ . keys ( info ) . forEach ( ( key ) => {
87- const prop = info [ key ] ;
88- if ( prop instanceof Date ) {
89- info [ key ] = formatter . applyStyles ( key , prop ) ;
90- }
91- } ) ;
92- }
84+
85+ // TODO: this formatter do sort by date, we can`t change output because customers can grep it
86+ // // if no pretty flag and no dateFormat - force apply specific entity date format
87+ // if (!pretty && (!dateFormat || dateFormat === 'default')) {
88+ // const formatter = FormatterRegistry.get(entities[0].constructor.name);
89+ // _.keys(info).forEach((key) => {
90+ // const prop = info[key];
91+ // if (prop instanceof Date) {
92+ // info[key] = formatter.applyStyles(key, prop);
93+ // }
94+ // });
95+ // }
9396
9497 if ( pretty ) {
9598 const formatter = FormatterRegistry . get ( entities [ 0 ] . constructor . name ) ;
0 commit comments