comparison OrthancFramework/Sources/HttpServer/IWebDavBucket.cpp @ 4230:b313a0001893

WebDavStorage
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 Oct 2020 18:14:26 +0200
parents c8c0bbaaace3
children 688435755466
comparison
equal deleted inserted replaced
4229:013d6c6b2387 4230:b313a0001893
105 std::string(EnumerationToString(status))); 105 std::string(EnumerationToString(status)));
106 propstat.append_child("D:status").append_child(pugi::node_pcdata).set_value(s.c_str()); 106 propstat.append_child("D:status").append_child(pugi::node_pcdata).set_value(s.c_str());
107 107
108 pugi::xml_node prop = propstat.append_child("D:prop"); 108 pugi::xml_node prop = propstat.append_child("D:prop");
109 109
110 // IMPORTANT: The "Z" suffix is mandatory on Windows >= 7 110 // IMPORTANT: The "Z" suffix is mandatory on Windows >= 7 (it indicates UTC)
111 s = boost::posix_time::to_iso_extended_string(GetCreationTime()) + "Z"; 111 s = boost::posix_time::to_iso_extended_string(GetCreationTime()) + "Z";
112 prop.append_child("D:creationdate").append_child(pugi::node_pcdata).set_value(s.c_str()); 112 prop.append_child("D:creationdate").append_child(pugi::node_pcdata).set_value(s.c_str());
113 113
114 s = boost::posix_time::to_iso_extended_string(GetModificationTime()) + "Z"; 114 s = boost::posix_time::to_iso_extended_string(GetModificationTime()) + "Z";
115 prop.append_child("D:getlastmodified").append_child(pugi::node_pcdata).set_value(s.c_str()); 115 prop.append_child("D:getlastmodified").append_child(pugi::node_pcdata).set_value(s.c_str());