upload-artifact icon indicating copy to clipboard operation
upload-artifact copied to clipboard

[bug] Keep timestamp of files in the artifacts

Open tenzap opened this issue 2 years ago • 4 comments

What happened?

The timestamp of the files in the artifact is not the one of the original file

What did you expect to happen?

That the timestamps of the files in the archive (zip) of the artifact are the same as the original file

How can we reproduce it?

Give a specific timestamp to a file use actions/upload-artifact@v3 for that file

Then after job is run, download the artifact locally. You can see that the timestamps is not the same as before

Anything else we need to know?

No response

What version of the action are you using?

actions/upload-artifact@v3

What are your runner environments?

macos

Are you on GitHub Enterprise Server? If so, what version?

No response

tenzap avatar Feb 05 '23 10:02 tenzap

v4 just dropped and this should be fixed: https://github.blog/changelog/2023-12-14-github-actions-artifacts-v4-is-now-generally-available/

@tenzap could you try reproducing this with v4 and closing this out if this is no longer an issue

konradpabjan avatar Dec 15 '23 00:12 konradpabjan

This still seems to be happening; the files on the hard drive are timestamped to CET (our machine's timezone, e.g. 22:09) but the ones in the archive seem to be timestamped to GMT (21:09)

Gargaj avatar Mar 30 '24 21:03 Gargaj

I'm seeing this across all types of runner I've tried with v4. windows-2019, ubuntu-latest, macos-latest, etc. the original timestamps are not preserved in the zip.

bbbradsmith avatar Apr 15 '24 00:04 bbbradsmith