From d4e387c18a5a53e85e9d7c320737cd38748da721 Mon Sep 17 00:00:00 2001 From: Josh Wolfe Date: Fri, 16 Feb 2024 08:27:55 -0500 Subject: [PATCH] clarify docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e91b2db..4f2d3b8 100644 --- a/README.md +++ b/README.md @@ -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