Skip to content

Commit

Permalink
Merge pull request #192 from leehaoChen/fix-const
Browse files Browse the repository at this point in the history
fix: esm module contain "const", which necessitates the use of babel-…
  • Loading branch information
marnusw authored Jul 13, 2022
2 parents 5a055eb + 363157d commit eadff56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utcToZonedTime/index.js
Original file line number Diff line number Diff line change
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 eadff56

Please sign in to comment.