← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1832768] Re: Horizon: AgularJS pages do not display dates in system's timezone

 

Reviewed:  https://review.opendev.org/678175
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a464a94655471909b9f6d9f5b287b7a309862a80
Submitter: Zuul
Branch:    master

commit a464a94655471909b9f6d9f5b287b7a309862a80
Author: hutianhao <hu.tianhao@99cloud@SH>
Date:   Fri Aug 23 16:01:05 2019 +0800

    AgularJS pages display dates using Horizon's Settings Timezone
    
    Horizon's AngularJS pages (for example Images and Keypairs)
    display dates using browser's timezone now. This change makes
    AngularJS pages use Horizon's Settings Timezone instead of
    browser's timezone and if Timezone is not set under Settings,
    AngularJS pages will display dates in 'UTC' timezone.
    
    Closes-Bug: 1832768
    Change-Id: Ibbed19600bfe6b13c43b9f09fa484cb78524b0d6


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1832768

Title:
  Horizon: AgularJS pages do not display dates in system's timezone

Status in OpenStack Dashboard (Horizon):
  Fix Released
Status in StarlingX:
  Triaged

Bug description:
  Brief Description
  -----------------
  Horizon's AngularJS pages (for example Images) does not display timestamp in system's timezone. The timezone used is the browser's.

  Severity
  --------
  Minor

  Steps to Reproduce
  ------------------
  - If Timezone is not set under Settings (menu on the top right):
  Set the controller's system timezone to a one different from UTC and the browser, for example "system modify --timezone America/Regina"
  The Image timestamps (for example 'Created At') are displayed in the browser's timezone and not the system's timezone.

  or

  - If Timezone is set under Settings (menu on the top right): 
  Set Horizon's Settings Timezone to one that is different from UTC and the browser.
  The Image timestamps (for example 'Created At') are displayed in the browser's timezone and not the Settings' timezone.

  Expected Behavior
  ------------------
  AngularJS pages should align with Django pages which use the timezone from the Horizon's cookie (which is set under the Settings menu on the top right), or if that is not set use the controller’s timezone.

  Actual Behavior
  ----------------
  The AngularJS pages use the browser's timezone.

  Reproducibility
  ---------------
  Reproducible

  System Configuration
  --------------------
  Any configuration

  Branch/Pull Time/Commit
  -----------------------

  Last Pass
  ---------
  NA

  Timestamp/Logs
  --------------
  NA

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1832768/+subscriptions