Build information:
Build name: Newyork
Build date: 07-16-2019_1636
Build tag: glide-newyork-06-26-2019__patch0-hotfix2-07-10-2019

Issue Description:
Published Date for Knowledge articles shows "50y" ago on Service Portal if the system data format is set to "dd/MM/yyyy"

Steps to Reproduce

1. Log in as admin.
2. Navigate to the system property "glide.sys.date_format".
3. Update the value to "dd/MM/yyyy".
4. Save.
5. Log out and log in again.
7. Navigate to '/sp' Portal.
8. Click the head menu "Knowledge".
9. Select any of the Categories, for example, "IT".
10. Click to open any article.
11. Check the published data besides the calendar icon.

Expected behavior
All published date should vary according to the real published data of the knowledge articles.
Actual behavior
All published date is 50y ago on both the "KB Category Page" Widget of "kb_category" and the "KB Article Page" Widget of "kb_article" page.



1. Navigate to 'Search Sources'

2. Select 'Knowledge Bases'

3. In the Search Page Template,

Replace :
${Published}: <sn-day-ago date="item.publishedUTC"/>
With :
${Published}: <sn-day-ago date="item.publishedValue"/>

4. In the date fetch script ,

Add :
article.publishedValue = result.meta.published.value;
Before : 

5. Navigate to "sp_theme.list" in platform.

6. Pick the theme assigned to your Service Portal (On OOB instance, 'Stock' theme used for 'sp' portal)
7. Create a new JS include and add a new UI Script associated to it.
8. Copy/Paste the content of the file snDayAgo.txt (attached) to the Script field and submit it.

Related Problem: PRB1357259

Seen In

London Patch 8 Hot Fix 2a
SR - IntegrationHub - Microsoft Teams Integration v1.0.1
SR - IntegrationHub - Workplace by Facebook Integration v1.0.7
SR - IRM - GRC Profiles - Madrid 2019 Q2
SR - IRM - GRC Workbench - New York 2019 Q3
SR - IRM - PA Premium Integration - New York 2019 Q3
SR - IRM - Policy and Compliance - Madrid 2019 Q2
SR - IRM - Policy and Compliance PA Content - Madrid 2019 Q1
SR - IRM - Risk Management - New York 2019 Q3
SR - IRM - Vendor Risk Management - Madrid 2019 Q1
SR - ITOM - CMDB CI Class Models - 201908
SR - ITOM - Discovery and Service Mapping - 201908
SR - ITOM - Discovery and Service Mapping - v1.0.35
SR - ITOM - Fundamentals Istanbul Jakarta Kingston r1 - v5.99.6
SR - ITSM - Collaboration Services for Task Communications Management - v1.1
SR - Security - Support Orchestration - Madrid 2019 Q2
SR - SIR - Security Incident Response - Madrid 2019 Q2
SR - SIR - Splunk Sighting Search Integration - Madrid 2019 Q1
SR - SIR - Store Threat Core - Madrid 2019 Q2
SR - SIR - Store Trusted Security Circles Client - New York 2019 Q3

Intended Fix Version


Fixed In

New York Patch 2

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-11-04 18:11:15