brendan-duncan/archive

Timestamps are wrong when creating TAR archive

aiurovet opened this issue · 2 comments

Using archive 3.1.5 (the latest at the moment) on Linux. The date/time of the archived files is set to something far in the future like 2779-01-12. When unpacking using standard tar, it extracts files successfully, but issues warnings about future dates of the last modification. The extracted files have the same future date/time of the last modification.

Looks like it's setting the time as millisecondsSinceEpoch instead of secondsSinceEpoch. I pushed a fix in 3.1.6.

Thank you, @brendan-duncan.