libidav/utils.c

changeset 329
2dc61cc5a8ac
parent 254
d7c4ba50b7d8
child 337
d7bda914d120
--- a/libidav/utils.c	Sat Oct 07 10:40:21 2017 +0200
+++ b/libidav/utils.c	Mon Oct 09 14:55:47 2017 +0200
@@ -181,8 +181,9 @@
     } else {
         time_t result = curl_getdate(str, NULL);
         if(result == -1) {
-            // some shit server don't comply with the WebDAV standard and
-            // use ISO-8601 dates for lastmodified (e.g. Microsoft Sharepoint)
+            // fall back to the ISO-8601 format (e.g. Microsoft Sharepoint
+            // illegally uses this format for lastmodified, but also some
+            // users might want to give an ISO-8601 date)
             return util_parse_creationdate(str);
         } else {
             return result;

mercurial