]> 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' 28325/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:06:45 +0000 (11:06 -0400)
commit4ea737125c4301c13bf16d09bcf555d60fd9ef7f
tree84bbbcafc60e1d0b6f860bb10f90acc4a515c2bc
parentdf9dc90671e40676dd44bdd0f876ca1d9d984016
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