]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Windows does not support %F, use %Y-%m-%d instead.
authorTim Kientzle <kientzle@acm.org>
Mon, 29 Jun 2015 04:08:19 +0000 (21:08 -0700)
committerTim Kientzle <kientzle@acm.org>
Mon, 29 Jun 2015 04:08:19 +0000 (21:08 -0700)
libarchive/archive_write_set_format_warc.c

index 074b07b9144344f9e9a8f2e4e5fad71b6cf7a9e1..80abc6f4e4ee43074c92ff6edffd0896e97c58f1 100644 (file)
@@ -382,10 +382,10 @@ _popul_ehdr(struct archive_string *tgt, size_t tsz, warc_essential_hdr_t hdr)
 
        /* record time is usually when the http is sent off,
         * just treat the archive writing as such for a moment */
-       xstrftime(tgt, "WARC-Date: %FT%H:%M:%SZ\r\n", hdr.rtime);
+       xstrftime(tgt, "WARC-Date: %Y-%m-%dT%H:%M:%SZ\r\n", hdr.rtime);
 
        /* while we're at it, record the mtime */
-       xstrftime(tgt, "Last-Modified: %FT%H:%M:%SZ\r\n", hdr.mtime);
+       xstrftime(tgt, "Last-Modified: %Y-%m-%dT%H:%M:%SZ\r\n", hdr.mtime);
 
        if (hdr.recid == NULL) {
                /* generate one, grrrr */