Skip to content

Commit 456b741

Browse files
committed
fix: set utc as false if $offset is 0
1 parent e53279d commit 456b741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const dayjs = function (date, c) {
5050
const wrapper = (date, instance) =>
5151
dayjs(date, {
5252
locale: instance.$L,
53-
utc: instance.$u,
53+
utc: instance.$offset !== 0 && instance.$u,
5454
x: instance.$x,
5555
$offset: instance.$offset // todo: refactor; do not use this.$offset in you code
5656
})

0 commit comments

Comments
 (0)