]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/utime: don't pass %z to utime if there is a 'Z' 28326/head
authorSage Weil <sage@redhat.com>
Fri, 24 May 2019 22:09:53 +0000 (17:09 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 30 May 2019 15:18:05 +0000 (11:18 -0400)
commit778ed34fc5801a5e14a01a9a1a19cd1e768c8a42
treea916f245188e2a6648632dde9429f7a65ecf773a
parent0d77c3a72b877a2a5cf28331f4ec7faf626eb79c
common/utime: don't pass %z to utime if there is a 'Z'

This fails on centos 7 for some reason.

If it's UTC, we don't need to parse the tz portion, so avoid the issue by
leaving the %z out of the fmt string.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 1d1c4782eea1fac0e9230ed5ac32b19517fdd616)
src/include/utime.h