From 1d1c4782eea1fac0e9230ed5ac32b19517fdd616 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 24 May 2019 17:09:53 -0500 Subject: [PATCH] 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 --- src/include/utime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/utime.h b/src/include/utime.h index 6d931b8704a..4a78ba4be6f 100644 --- a/src/include/utime.h +++ b/src/include/utime.h @@ -408,7 +408,7 @@ public: } } // look for tz... - if (*q == '-' || *q == '+' || *q == 'Z') { + if (*q == '-' || *q == '+') { *q = '%'; *(q+1) = 'z'; *(q+2) = 0; -- 2.39.5