import { ConvertTimeZoneModel, } from '../../../../code/type/index.js';
import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';
import timezone from 'dayjs/plugin/timezone';
// https://gist.github.com/iambibhas/e88d69f97818a2a35492#file-timezones-csv-L6
dayjs.extend(utc);
dayjs.extend(timezone);
export function convertTimeZone(source) {
    const input = ConvertTimeZoneModel.parse(source);
    return dayjs(input.input.date)
        .tz(input.output.timezone)
        .format(input.output.format);
}
//# sourceMappingURL=shared.js.map