Skip to content

Commit

Permalink
try it out
Browse files Browse the repository at this point in the history
  • Loading branch information
pcraig3 committed May 8, 2024
1 parent fd613de commit 7544ee5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dates/index.js
Expand Up @@ -103,6 +103,8 @@ const _getDate = (dateString, year) => {
throw new Error(`Date string not parsable: ${dateString}`)
}

date = new Date(date.valueOf() - date.getTimezoneOffset() * 60 * 1000)

return date
}

Expand Down

0 comments on commit 7544ee5

Please sign in to comment.