I have this function:
export const convertTimeByTimezones = ({
deadlineDateTime,
}) => {
const res = dayjs("2024-01-16T18:30")
.tz('America/New-York')
.tz('Europe/London')
.format('h:mmA');
return res; // 4:30PM
};
It should be 23:30
Fixed it with the
tzmethod second argument