Merge branch 'IA-1642-add-custom-zoom-links' into 'main'
[ProtonMail-WebClient.git] / packages / shared / lib / calendar / recurrence / getRecurrenceIdValueFromTimestamp.ts
blobe215da3f0dc14dda5e3bdcbe593d7e88e90fe48f
1 import { convertTimestampToTimezone } from '../../date/timezone';
2 import { toExdate } from '../exdate';
4 const getRecurrenceIdValueFromTimestamp = (unixTimestamp: number, isAllDay: boolean, startTimezone: string) => {
5     const localStartDateTime = convertTimestampToTimezone(unixTimestamp, startTimezone);
6     return toExdate(localStartDateTime, isAllDay, startTimezone);
7 };
9 export default getRecurrenceIdValueFromTimestamp;