Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
pack: use a specific mtime when packing (#20027)
Browse files Browse the repository at this point in the history
> Thank god I found you.  Listen, can you meet me at Twin Pines Mall
> tonight at 1:15?  I've made a major breakthrough, I'll need your
> assistance.

Fixes: #19933
Fixes: #19968
PR-URL: #20027
Credit: @isaacs
Reviewed-By: @zkat
  • Loading branch information
isaacs authored and zkat committed Mar 12, 2018
1 parent 8150dd5 commit 58d2aa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pack.js
Expand Up @@ -120,7 +120,9 @@ function packDirectory (mani, dir, target) {
cwd: dir,
prefix: 'package/',
portable: true,
noMtime: true,
// Provide a specific date in the 1980s for the benefit of zip,
// which is confounded by files dated at the Unix epoch 0.
mtime: new Date('1985-10-26T08:15:00.000Z'),
gzip: true
}

Expand Down

1 comment on commit 58d2aa5

@jdalton
Copy link
Contributor

@jdalton jdalton commented on 58d2aa5 Mar 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.