dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0031-sssctl-Use-localtime-for-time-stamps.patch

b2d430
From e6cfc113e6f3f7cc1c941d12e0ac7032f19affb9 Mon Sep 17 00:00:00 2001
b2d430
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
b2d430
Date: Thu, 14 Jul 2016 15:33:19 +0200
b2d430
Subject: [PATCH 31/31] sssctl: Use localtime for time stamps
b2d430
MIME-Version: 1.0
b2d430
Content-Type: text/plain; charset=UTF-8
b2d430
Content-Transfer-Encoding: 8bit
b2d430
b2d430
Resolves:
b2d430
https://fedorahosted.org/sssd/ticket/3096
b2d430
b2d430
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
b2d430
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
b2d430
(cherry picked from commit f316e5446313bbf61c96b6763badc21604bff4a3)
b2d430
---
b2d430
 src/tools/sssctl/sssctl_cache.c | 2 +-
b2d430
 1 file changed, 1 insertion(+), 1 deletion(-)
b2d430
b2d430
diff --git a/src/tools/sssctl/sssctl_cache.c b/src/tools/sssctl/sssctl_cache.c
b2d430
index 22e3fad89e3c1bbfce48439b43acd2346da3e56f..4a1f3558ed7064ca40ccf9313d99fbab36e6e4c9 100644
b2d430
--- a/src/tools/sssctl/sssctl_cache.c
b2d430
+++ b/src/tools/sssctl/sssctl_cache.c
b2d430
@@ -67,7 +67,7 @@ static errno_t time_to_string(TALLOC_CTX *mem_ctx,
b2d430
     char str[255];
b2d430
     size_t ret;
b2d430
 
b2d430
-    tm = gmtime(&timestamp);
b2d430
+    tm = localtime(&timestamp);
b2d430
     if (tm == NULL) {
b2d430
         return ENOMEM;
b2d430
     }
b2d430
-- 
b2d430
2.4.11
b2d430