i got this done by editing the templates\dashboard-recent-added\dashboard-recent-added.php,templates\dashboard-recent-modified\dashboard-recent-modified.php and changed the date format there.and for manage section i edited includes\admin\pages\manage.php . I think its the way if there is another let me know!
Plugin Author
Steven
(@shazahm1hotmailcom)
@ rkvisit
Yes, that is the only to to change those dates. I put on my todo list to provide a way to make this change without having to edit the files but it could be awhile until I add that.
hey still there is a problem with date picker in add entry section it shows date in m/d/Y format( i need d/m/Y ) where should i edit this to change?
i think its something to do with the cn-admin.js isn’t it? please direct me?
Plugin Author
Steven
(@shazahm1hotmailcom)
@ rkvisit
Sorry, but this can not be easily changed because the PHP function date_create() which is used when creating a data object to be saved to the database only supports US date format. The function that could be used to support multiple formats requires PHP 5.3 or newer but since WordPress required 5.2, I can not use it and be compatible.
If you’d like to try to change it the data format in the javascript can be changed here:
https://github.com/Connections-Business-Directory/Connections/blob/8.5.1/assets/js/cn-admin.js#L346
See this doc page on the jQuery UI Date Picker for instruction on what option to set to change the data format:
https://api.jqueryui.com/datepicker/#option-dateFormat
Make sure you update the minified version of the file after you make the changes.
You will also need to change the PHP which saves the date:
https://github.com/Connections-Business-Directory/Connections/blob/8.5.1/includes/entry/class.entry-data.php#L3342
You should be able to use this PHP function:
http://php.net/manual/en/datetime.createfromformat.php
Hope that helps and have fun! Let me know how it goes.