Files
calendar/apps/ai/src/utils/now.ts
T
DexterStoreyandGitHub dfccf4604f fix: better timezones and error handling in ai tools (#11085)
* current time in user timezone, let ai handle 401

* update agent.ts

* simple onboarding for non cal.com users

* reverting this line - unecessary

* v1.0.1
2023-09-05 13:56:26 +01:00

6 lines
116 B
TypeScript

export default function now(timeZone: string) {
return new Date().toLocaleString("en-US", {
timeZone,
});
}