"couldn't parse Date"

Hi I just executed my first rclone command, rclone copy. When I use the verbose option I see that rclone apparently cant handle what looks like rather straight forward dates:

DEBUG: Couldn't parse Date: from server p-ams2.pcloud.com: "Tue, 06 Feb 2018 13:58:40 +0000": parsing time "Tue, 06 Feb 2018 13:58:40 +0000" as "Mon jan _2 15:04:05 2006": cannot parse ", 06 Feb 2018 13:58:40 +0000" as " "

I guess this means a lot of my files will have an incorrect timestamp. Why is this? Is it a bug or something I can handle somehow?

1 Like

It is only a DEBUG message - nothing bad happened!

rclone parses the Date: in incoming requests to check that your computer’s date is correct.

If it can’t parse it, then it is no big deal.

Strictly speaking that format “Tue, 06 Feb 2018 13:58:40 +0000” isn’t valid according to the HTTP/1.1 RFC which is why the go runtime doesn’t parse it. If they were to replace the “+0000” with “GMT” then it would be valid.

I wrote to pcloud before to suggest they change it but never heard back!


Ahhh - thank you. that makes sense. So just to be clear: this has nothing to do with the filestamp of files. Its simply a heuristic to check if the computer clock is correct.

Thanks for that!

That is correct :smiley:

Sorry for the confusion.

1 Like