6 lines
304 B
TypeScript
6 lines
304 B
TypeScript
export const getReminderTimeZone = () => process.env.MILESTONE_REMINDER_TIME_ZONE?.trim() || 'America/New_York';
|
|
|
|
export const getReminderDate = (now = new Date()) => new Intl.DateTimeFormat('en-CA', {
|
|
timeZone: getReminderTimeZone(), year: 'numeric', month: '2-digit', day: '2-digit',
|
|
}).format(now);
|