dav/main.c

changeset 329
2dc61cc5a8ac
parent 318
7e0694423838
child 330
54819e984a19
equal deleted inserted replaced
328:18a8c7895b6d 329:2dc61cc5a8ac
646 646
647 char *update = cmd_getoption(a, "update"); 647 char *update = cmd_getoption(a, "update");
648 time_t t = -1; 648 time_t t = -1;
649 if(update) { 649 if(update) {
650 t = util_parse_lastmodified(update); 650 t = util_parse_lastmodified(update);
651 if (t == 0) {
652 fprintf(stderr,
653 "Invalid date format. Possible formats are:\n"
654 " RFC-1123 - example: Thu, 29 Nov 2012 21:35:35 GMT\n"
655 " RFC-3339 - example: 2012-11-29T21:35:35Z\n");
656 return -1;
657 }
651 } 658 }
652 659
653 int recursive = cmd_getoption(a, "recursive") ? 1 : 0; 660 int recursive = cmd_getoption(a, "recursive") ? 1 : 0;
654 DavResource *res; 661 DavResource *res;
655 662

mercurial