Skip to content

Commit

Permalink
Merge pull request #11 from unixlab/fix-tar-header
Browse files Browse the repository at this point in the history
Fix mtime header field
  • Loading branch information
VicDeo committed Dec 4, 2019
2 parents cccda90 + b2a34cd commit c8d3b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TarHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getHeader(){
['a8', decoct(str_pad($this->uid, 7, '0', STR_PAD_LEFT))],
['a8', decoct(str_pad($this->gid, 7, '0', STR_PAD_LEFT))],
['a12', str_pad(decoct($this->size), 11, '0', STR_PAD_LEFT)],
['a12', $this->mtime],
['a12', str_pad(decoct($this->mtime), 11, '0', STR_PAD_LEFT)],
// We calculate checksum later
['a8', ''],
['a1', $this->typeflag],
Expand Down

0 comments on commit c8d3b32

Please sign in to comment.