Signed-off-by: Sage Weil <sage@redhat.com>
remoto = None
remoto_import_error = str(e)
-DATEFMT = '%Y-%m-%d %H:%M:%S.%f'
+DATEFMT = '%Y-%m-%dT%H:%M:%S.%f%z'
# high-level TODO:
# - bring over some of the protections from ceph-deploy that guard against
@staticmethod
def time_from_string(timestr):
- # drop the 'Z' timezone indication, it's always UTC
- timestr = timestr.rstrip('Z')
return datetime.datetime.strptime(timestr, DATEFMT)
def _get_cluster_fsid(self):