* add booking date range filters * fix dateFrom, dateTo strings * simplify temporal filters * Freeze GPT-4-0613 * parse and validate booking dateFrom and dateTo fields * add weekday to agent prompt
7 lines
174 B
TypeScript
7 lines
174 B
TypeScript
export default function now(timeZone: string, options: Intl.DateTimeFormatOptions = {}) {
|
|
return new Date().toLocaleString("en-US", {
|
|
timeZone,
|
|
...options,
|
|
});
|
|
}
|