Project

General

Profile

Bug #27941

Time zone is set based on server tz and not the browser tz

Added by Samir Jha over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
-
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

The date/time displays in katello pages uses react components which aren't handling timezones correctly based on browser timezone. From what I found, https://github.com/theforeman/foreman/blob/develop/webpack/assets/javascripts/react_app/common/I18n.js#L35 uses attribute 'data-timezone'which is set in https://github.com/theforeman/foreman/search?q=iana_timezone&unscoped_q=iana_timezone with the timezone of the server.
We should ideally fetch user's browser timezone to display dates.


Related issues

Related to Katello - Bug #27796: Wrong timezone conversions in sync plansDuplicate

Associated revisions

Revision 9396c785 (diff)
Added by sjha4 over 3 years ago

Fixes #27941 - Set timezone based on browser timezone

History

#1 Updated by The Foreman Bot over 3 years ago

  • Assignee set to Samir Jha
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7067 added

#2 Updated by Samir Jha over 3 years ago

  • Related to Bug #27796: Wrong timezone conversions in sync plans added

#3 Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases 1.24.0 added

#4 Updated by The Foreman Bot over 3 years ago

  • Pull request https://github.com/theforeman/foreman/pull/7097 added

#5 Updated by Anonymous over 3 years ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Tomer Brisker over 3 years ago

  • Fixed in Releases 1.23.1 added

Also available in: Atom PDF