gptscript-ai / desktop

MIT License
22 stars 13 forks source link

Outlook Email/Calendar tool - Make the tool aware of the users timezone setting. #362

Open sangee2004 opened 1 month ago

sangee2004 commented 1 month ago

Electron build - 2fa0a1806

Steps to reproduce the problem:

  1. Start a chat with Tildy.
  2. Add Outlook Mail tool.
  3. Ask to list all emails from today.

My outlook client is set on PST timezone and I would want all my search results for email to reflect this time zone.

Currently when I search for all emails from today , I also get emails from last yesterday because of UTC being used as Timezone for the queries.

Even when I ask to use PST time zone , the "Received:" date is presented in PST but the results for the query still uses UTC .

I end up getting emails from previous day in the results

Screenshot 2024-08-29 at 1 22 26 PM

From outlook client:

Screenshot 2024-08-29 at 1 23 43 PM
sangee2004 commented 1 month ago

The same issues relating to Timezone are also seen when testing with Outlook Calendar tool.