mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-09 23:16:51 +02:00
🐛 Fix time zone conversion from utc date
This commit is contained in:
parent
04d8b71281
commit
557612b9b3
1 changed files with 2 additions and 2 deletions
|
@ -105,9 +105,9 @@ export const parseTimeSlotOption = (
|
||||||
timeFormat: TimeFormat,
|
timeFormat: TimeFormat,
|
||||||
): ParsedTimeSlotOption => {
|
): ParsedTimeSlotOption => {
|
||||||
const adjustTimeZone = (date: Date | dayjs.Dayjs) => {
|
const adjustTimeZone = (date: Date | dayjs.Dayjs) => {
|
||||||
const d = dayjs(date);
|
const d = dayjs(date).utc();
|
||||||
if (!timeZone) {
|
if (!timeZone) {
|
||||||
return d.utc();
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
const t = d.tz(timeZone, true);
|
const t = d.tz(timeZone, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue