Skip to content

Commit

Permalink
fix: esm module contain "const", which necessitates the use of babel-…
Browse files Browse the repository at this point in the history
…loader.
  • Loading branch information
leehaoChen committed Jul 13, 2022
1 parent 5a055eb commit 363157d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utcToZonedTime/index.js
Expand Up @@ -32,7 +32,7 @@ export default function utcToZonedTime(dirtyDate, timeZone, options) {

var d = new Date(date.getTime() - offsetMilliseconds)

const resultDate = new Date(0)
var resultDate = new Date(0)

resultDate.setFullYear(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate())

Expand Down

0 comments on commit 363157d

Please sign in to comment.