Project

General

Profile

Bug #28433

Content View "Last Published" time "Invalid Date" if User time zone is UTC

Added by Ian Ballou 6 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

"Invalid Date" also pops up for Content Hosts' "Last Checkin" entries.

JS error:

[React Intl] Error formatting relative time.
RangeError: The date value provided to IntlRelativeFormat#format() is not in valid range. 
    in LongDateTime (created by I18nProviderWrapper(LongDateTime))
    in I18nProviderWrapper(LongDateTime) backend.js:6:2315
    r backend.js:6
    defaultErrorHandler index.es.js:518
    formatRelative index.es.js:741
    LongDateTime LongDateTime.js:10
    React 9
    unstable_runWithPriority scheduler.development.js:643
    React 6
    I18nProviderWrapper i18nProviderWrapperFactory.js:19
[React Intl] Error formatting date.
RangeError: date value is not finite in DateTimeFormat.format() 
    in FormattedDate (created by LongDateTime)
    in LongDateTime (created by I18nProviderWrapper(LongDateTime))
    in I18nProviderWrapper(LongDateTime) backend.js:6:2315
    r backend.js:6
    defaultErrorHandler index.es.js:518
    formatDate index.es.js:685
    render index.es.js:1097
    React 9
    unstable_runWithPriority scheduler.development.js:643
    React 6
    I18nProviderWrapper i18nProviderWrapperFactory.js:19

Related merged PR: https://github.com/theforeman/foreman/pull/7067

History

#1 Updated by Ian Ballou 6 months ago

  • Category set to Web UI

#2 Updated by James Jeffers 6 months ago

  • Triaged changed from No to Yes
  • Difficulty set to easy
  • Target version set to Katello Backlog

#3 Updated by Ian Ballou 4 months ago

This also appears on the Products page for the last synced time. In Safari, the error pops up for any time zone.

Also available in: Atom PDF