This is a change that was implemented in mod_dav version 1.0.3.

It hasn't been ported to the version of mod_dav included 
with httpd V 2.0.X. (i.e. modules/dav).

This change enables Windows clients using WebFolders to
display the value of the "creationdate" and "getlastmodified"
properties.

This is my first submission, so if I've done it incorrectly,
please let me know how to do it.  

Thanks,
-tony

--- modules/dav/fs/repos.c      Fri Nov 30 22:43:02 2001
+++ modules/dav/fs/repos.c.old  Fri Nov 30 22:38:32 2001
@@ -1741,7 +1741,6 @@
     apr_pool_t *p = resource->info->pool;
     const dav_liveprop_spec *info;
     int global_ns;
-    char *attribs = "";
 
     /* an HTTP-date can be 29 chars plus a null term */
     /* a 64-bit size can be 20 chars plus a null term */
@@ -1769,9 +1768,6 @@
                         resource->info->finfo.ctime,
                         buf);
        value = buf;
-        attribs = "
xmlns:b=\"urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/\""
-                  " b:dt=\"dateTime.tz\"";
-
        break;
 
     case DAV_PROPID_getcontentlength:
@@ -1792,9 +1788,6 @@
                         resource->info->finfo.mtime,
                         buf);
        value = buf;
-        attribs = "
xmlns:b=\"urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/\""
-                  " b:dt=\"dateTime.rfc1123\"";
-
        break;
 
     case DAV_PROPID_FS_executable:
@@ -1828,8 +1821,8 @@
     /* DBG3("FS: inserting lp%d:%s  (local %d)", ns, scan->name, scan->ns);
*/
 
     if (what == DAV_PROP_INSERT_VALUE) {
-        s = apr_psprintf(p, "<lp%d:%s%s>%s</lp%d:%s>" DEBUG_CR,
-                 global_ns, info->name, attribs, value, global_ns,
info->name);
+       s = apr_psprintf(p, "<lp%d:%s>%s</lp%d:%s>" DEBUG_CR,
+                         global_ns, info->name, value, global_ns,
info->name);
     }
     else if (what == DAV_PROP_INSERT_NAME) {
        s = apr_psprintf(p, "<lp%d:%s/>" DEBUG_CR, global_ns, info->name);

Reply via email to