Bug 1356577 - sssctl: Time stamps without time zone information
Summary: sssctl: Time stamps without time zone information
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.3
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Fabiano Fidêncio
QA Contact: Steeve Goveas
Depends On:
TreeView+ depends on / blocked
Reported: 2016-07-14 12:15 UTC by Marc Muehlfeld
Modified: 2020-05-02 18:24 UTC (History)
8 users (show)

Fixed In Version: sssd-1.14.0-10.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2016-11-04 07:19:46 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Github SSSD sssd issues 4129 None None None 2020-05-02 18:24:33 UTC
Red Hat Product Errata RHEA-2016:2476 normal SHIPPED_LIVE sssd bug fix and enhancement update 2016-11-03 14:08:11 UTC

Description Marc Muehlfeld 2016-07-14 12:15:44 UTC
Description of problem:
sssctl shows time stamps in UTC. Either "UTC" should be added to the time stamps or the time should be converted to the local time zone.

Version-Release number of selected component (if applicable):

Steps to Reproduce:
1. Show the current time:
    # date
    Do 14. Jul 13:55:20 CEST 2016
2. Verify that a user is not in the cache
    # sssctl user admin
3. Get the user cached
    # getent passwd admin
4. Show the cache information:
    # sssctl user admin
    Name: admin
    Cache entry creation date: 07/14/16 11:55:17
    Cache entry last update time: 07/14/16 11:55:17
    Cache entry expiration time: 07/14/16 13:25:17
    Initgroups expiration time: Initgroups were not yet performed
    Cached in InfoPipe: No

Actual results:
Time stamps are shown in UTC without telling the user.

Expected results:
Time stamps should be either converted to the local time zone or "UTC" added.

Comment 2 Jakub Hrozek 2016-07-14 15:03:21 UTC
Upstream ticket:

Comment 3 Lukas Slebodnik 2016-07-18 14:40:36 UTC
* f316e5446313bbf61c96b6763badc21604bff4a3

Comment 7 shridhar 2016-09-15 12:10:45 UTC
Verified with  
]# rpm -q sssd

[root@dell-pesc1425-02 ~]# date ; id testuser1012
Thu Sep 15 08:09:35 EDT 2016
uid=1012(testuser1012) gid=1012(testuser1012) groups=1012(testuser1012),444412(dbgroup)

[root@dell-pesc1425-02 ~]# sssctl user-show testuser1012
Name: testuser1012
Cache entry creation date: 09/15/16 08:09:35
Cache entry last update time: 09/15/16 08:09:35
Cache entry expiration time: 09/15/16 09:39:35
Initgroups expiration time: 09/15/16 09:39:35
Cached in InfoPipe: No
[root@dell-pesc1425-02 ~]# 

Timestamps are shown in local timezone.

Comment 9 errata-xmlrpc 2016-11-04 07:19:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.