]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/date_time/posix_time/time_parsers.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / date_time / posix_time / time_parsers.hpp
index 24f20704aa16622510f09295f06a1eaf97a2640a..738de6f9033583b4035aecbd9f66f5c763e56de8 100644 (file)
@@ -36,6 +36,10 @@ namespace posix_time {
   }
 
   inline ptime from_iso_extended_string(const std::string& s) {
+    if (s.size() == 10) { //assume we just have a date which is 10 chars
+      gregorian::date d = gregorian::from_simple_string(s);
+      return ptime( d );
+    }
     return date_time::parse_delimited_time<ptime>(s, 'T');
   }