Change the format of published and last modifed field in KB Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2023 01:45 AM
Hi All,
I have a requirement where I need to show the last modified date and time and the published date of an article in knowledge portal in format YYYY-MM-DD HH:MM:SS. I have enabled the system properties "glide.knowman.search.show_last_modified" and "glide.knowman.search.show_published", but the way its getting displayed in portal is "1day ago" or "3 weeks ago" etc. How to change this format to YYYY-MM-DD?
Can anyone suggest me how to proceed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2023 02:41 AM
Hi Sweta,
The published can be changed from search sources for knowledge. If you replace the highlighted line below then it should be fixed.
${Published}: {{item.publishedUTC}}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2023 09:23 AM
Hi Gurpreet, thanks for replying but i tried changing the published as mentioned by you but its not working, its still coming the same way. I even got a script include KBPortalServiceImpl, but i am not sure what changes needs to be done there. Can you please help me with this? I am not sure how to move further
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2023 07:17 AM
Hi Gurpreet, thanks for replying but i tried changing the published as mentioned by you but its not working, its still coming the same way. I even got a script include KBPortalServiceImpl, but i am not sure what changes needs to be done there. Can you please help me with this? I am not sure how to move further
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2023 09:32 PM
You are possibly using some custom widget for this but i tested this in pdi and its working as expected.