@@ -78,6 +78,7 @@ private enum HeaderFields {
7878 "Application Name" ,
7979 "Application ID" ,
8080 "Application Organization" ,
81+ "Application Created On" ,
8182 CREATED_ON
8283 });
8384
@@ -192,7 +193,7 @@ private void writeStandardToCSV(CSVPrinter csvPrinter, API api) throws IOExcepti
192193 api .getName (),
193194 api .getPath (),
194195 api .getVersion (),
195- getFormattedDate (api )
196+ getFormattedDate (api . getCreatedOn () )
196197 );
197198 }
198199
@@ -210,7 +211,7 @@ private void writeWideToCSV(CSVPrinter csvPrinter, API api) throws IOException {
210211 getUsedPolicies (api , PolicyType .ROUTING ).toString ().replace ("[" , "" ).replace ("]" , "" ),
211212 getUsedPolicies (api , PolicyType .RESPONSE ).toString ().replace ("[" , "" ).replace ("]" , "" ),
212213 getUsedPolicies (api , PolicyType .FAULT_HANDLER ).toString ().replace ("[" , "" ).replace ("]" , "" ),
213- getFormattedDate (api )
214+ getFormattedDate (api . getCreatedOn () )
214215 );
215216 }
216217
@@ -235,13 +236,14 @@ private void writeAPIUltraToCSV(CSVPrinter csvPrinter, API api, ClientApplicatio
235236 app .getName (),
236237 app .getId (),
237238 app .getOrganization ().getName (),
238- getFormattedDate (api )
239+ getFormattedDate (app .getCreatedOn ()),
240+ getFormattedDate (api .getCreatedOn ())
239241 );
240242 }
241243
242- private String getFormattedDate (API api ) {
243- if (api . getCreatedOn () == null ) return "N/A" ;
244- return isoDateFormatter .format (api . getCreatedOn () );
244+ private String getFormattedDate (Long longDate ) {
245+ if (longDate == null ) return "N/A" ;
246+ return isoDateFormatter .format (longDate );
245247 }
246248
247249 @ Override
0 commit comments