Project

General

Profile

Actions

Bug #27941

closed

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

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

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

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 1 (0 open1 closed)

Related to Katello - Bug #27796: Wrong timezone conversions in sync plansDuplicateSamir JhaActions
Actions

Also available in: Atom PDF