Actions
Bug #28433
openContent View "Last Published" time "Invalid Date" if User time zone is UTC
Status:
New
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
-
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
Updated by James Jeffers over 5 years ago
- Target version set to Katello Backlog
- Difficulty set to easy
- Triaged changed from No to Yes
Updated by Ian Ballou over 5 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