Change the date format in News column to DDMMYYYY¶
NOTE : This change refers to Sitools2 - v2.4
The function handling the dateFormat
used in the Feed is formatDate()
, and it is the same for all the three ExtJs files invoked by Sitools2 for the News column or details.
The formatDate()
for the News column is defined in the two files:
source:git_sitools_idoc|szcluster-db/workspace/client-public/js/feedsReader/rss2FeedsReader.js@dbbd9d34#L143
source:git_sitools_idoc|szcluster-db/workspace/client-public/js/feedsReader/atom1FeedsReader.js@dbbd9d34#L196
For dateFormat
: 'dd/mm/yyyy', edit the following lines (original code is commented):
if (d.getTime() <= notime) {
//return date.dateFormat('D g:i a');
return date.dateFormat('d/m/Y');
}
//return date.dateFormat('n/j g:i a');
return date.dateFormat('d/m/Y');
This will produce the following result:
To change the dateFormat
in the News details windows, edit the file:
For dateFormat
: 'dd/mm/yyyy h:m', edit the following lines (original code is commented):
if (d.getTime() <= notime) {
//return date.dateFormat('D g:i a');
return date.dateFormat('d/m/Y g:i a');
}
//return date.dateFormat('n/j g:i a');
return date.dateFormat('d/m/Y g:i a');
This will produce the following result: