We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c63b1d commit 7d2aa77Copy full SHA for 7d2aa77
src/localizers/dayjs.js
@@ -192,7 +192,8 @@ export default function (dayjsLib) {
192
const tm = dayjs(time).format('HH:mm:ss')
193
const dt = dayjs(date).startOf('day').format('MM/DD/YYYY')
194
// We do it this way to avoid issues when timezone switching
195
- return dayjsLib(`${dt} ${tm}`, 'MM/DD/YYYY HH:mm:ss').toDate()
+ const mergedDateTime = dayjs(`${dt} ${tm}`).toDate()
196
+ return dayjsLib(mergedDateTime).utc(true).toDate()
197
}
198
199
function add(date, adder, unit) {
0 commit comments