Skip to content

Commit 7ba9e24

Browse files
authored
fix(dayjs localizer): reverts previous changs, as it was casting a date as UTC instead of local time (#2759)
Previous change was casting a date as UTC instead of local time Closes #2758
1 parent 3324542 commit 7ba9e24

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/localizers/dayjs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ export default function (dayjsLib) {
192192
const tm = dayjs(time).format('HH:mm:ss')
193193
const dt = dayjs(date).startOf('day').format('MM/DD/YYYY')
194194
// We do it this way to avoid issues when timezone switching
195-
const mergedDateTime = dayjs(`${dt} ${tm}`).toDate()
196-
return dayjsLib(mergedDateTime).utc(true).toDate()
195+
return dayjs(`${dt} ${tm}`).toDate()
197196
}
198197

199198
function add(date, adder, unit) {

0 commit comments

Comments
 (0)