Skip to content

Commit

Permalink
clarify docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoshwolfe committed Feb 16, 2024
1 parent 65bb97a commit d4e387c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The returned `Date` object will be constructed using the local timezone.
In order to interpret the parameters in UTC time instead of local time, you can convert with the following snippet:

```js
var timestampInterpretedAsLocal = dosDateTimeToDate(date, time); // or entry.getLastModDate();
var timestampInterpretedAsLocal = yauzl.dosDateTimeToDate(date, time); // or entry.getLastModDate()
var timestampInterpretedAsUTCInstead = new Date(
timestampInterpretedAsLocal.getTime() -
timestampInterpretedAsLocal.getTimezoneOffset() * 60 * 1000
Expand Down

0 comments on commit d4e387c

Please sign in to comment.