Skip to content

Commit

Permalink
fix incorrect time stamp calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Jul 22, 2022
1 parent 2b75800 commit 98b5dd8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ entries, and the ability to merge archives without decompressing and recompressi

For deflate/inflate support, this library depends on Pako.

## Installation
## Installation

Armarius can be installed using npm:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "armarius",
"version": "1.4.3",
"version": "1.4.4",
"description": "A JavaScript library to read, write, and merge ZIP archives in web browsers.",
"repository": "github:aternosorg/armarius",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/Util/MsDosTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class MsDosTime {
let res = 0;
res |= Math.floor(date.getUTCSeconds() / 2) & 0b11111;
res |= (date.getUTCMinutes() & 0b111111) << 5;
res |= (date.getUTCSeconds() & 0b11111) << 11;
res |= (date.getUTCHours() & 0b11111) << 11;
return res;
}

Expand Down

0 comments on commit 98b5dd8

Please sign in to comment.