1282 return 1; |
1282 return 1; |
1283 } |
1283 } |
1284 buf[HTTP_DATE_LEN] = 0; |
1284 buf[HTTP_DATE_LEN] = 0; |
1285 |
1285 |
1286 struct tm mtms; |
1286 struct tm mtms; |
1287 struct tm *mtm = system_gmtime(&s->st_mtim.tv_sec, &mtms); |
1287 struct tm *mtm = system_gmtime(&s->st_mtime, &mtms); |
1288 |
1288 |
1289 if(mtm) { |
1289 if(mtm) { |
1290 strftime(buf, HTTP_DATE_LEN, HTTP_DATE_FMT, mtm); |
1290 strftime(buf, HTTP_DATE_LEN, HTTP_DATE_FMT, mtm); |
1291 if(webdav_resource_add_dav_stringproperty(res, pool, "getlastmodified", buf, strlen(buf))) { |
1291 if(webdav_resource_add_dav_stringproperty(res, pool, "getlastmodified", buf, strlen(buf))) { |
1292 return 1; |
1292 return 1; |