Skip to content

Commit

Permalink
fix: set utc as false if $offset is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ohsory1324 committed Jun 14, 2024
1 parent 0bc6fc0 commit 09c7a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const dayjs = function (date, c) {
const wrapper = (date, instance) =>
dayjs(date, {
locale: instance.$L,
utc: instance.$u,
utc: instance.$offset !== 0 && instance.$u,
x: instance.$x,
$offset: instance.$offset // todo: refactor; do not use this.$offset in you code
})
Expand Down

0 comments on commit 09c7a72

Please sign in to comment.