Notifications

122 views

Description

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".
https://.service-now.com/nav_to.do?uri=sys_properties.do?sys_id=24de57037f000001002b3574b0ad5187
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.

Workaround

WORKAROUND:

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 : 
results.push(article);

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

Intended Fix Version

Orlando

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-10-21 21:24:54
Published:2019-09-25