Project

General

Profile

Actions

Bug #28433

open

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

Added by Ian Ballou over 4 years ago. Updated about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
Difficulty:
easy
Triaged:
Yes
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

Actions #1

Updated by Ian Ballou over 4 years ago

  • Category set to Web UI
Actions #2

Updated by James Jeffers over 4 years ago

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

Updated by Ian Ballou about 4 years ago

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

Actions

Also available in: Atom PDF