X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cgilite%2Ffile.sh;h=6f956dfeb5989a6b2542534d78134bc4633217de;hb=0b60e2e81ffac0fcdd7760d3034f0e1d36f40c8f;hp=04a8ef617c9f755a4dcb7c3cf3adeeca69683f27;hpb=ddc3a72474bbaf0fad5edb200e4e78815537d52e;p=webpoll diff --git a/cgilite/file.sh b/cgilite/file.sh index 04a8ef6..6f956df 100755 --- a/cgilite/file.sh +++ b/cgilite/file.sh @@ -58,8 +58,7 @@ FILE(){ file_size="$(stat -Lc %s "$file")" file_date="$(stat -Lc %Y "$file")" - http_date="$(date -uRd @$file_date)" - http_date="${http_date%+0000}GMT" + http_date="$(date -ud "@$file_date" +"%a, %d %b %Y %T GMT")" cachedate="$( # Parse the allowable date formats from Section 3.3.1 of # https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html