Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google calendar timezone #232

Closed
shantanuo opened this issue Jun 29, 2024 · 4 comments
Closed

Google calendar timezone #232

shantanuo opened this issue Jun 29, 2024 · 4 comments

Comments

@shantanuo
Copy link

I tried the example code that I found here....

https://docs.composio.dev/guides/examples/todo-to-calendar#putting-it-all-together

This is working as expected. But is there any way to set the time to IST (Indian Standard Time)?

@sohamganatra
Copy link
Contributor

It should work out of box ideally! Just try adding to task that we give to agent something like, can you make those events in Indian timezone. Agent with a good model will be smart enough to know how to achieve that.

@shantanuo
Copy link
Author

I just changed the description by adding that instruction and it worked as expected.

description=f"Use IST (Indian Standard Time). Book slots according to {todo}....

This is really awesome! No programming required? No need of hellish chains like datetime.pytz.now().astimezone() ? What the programmers are supposed to do now?

@shantanuo
Copy link
Author

I need the description of the task to be added to the calendar like...

todo = '''
1PM - 3PM -> Code, > Work on pending tasks of chatGPT integration
5PM - 7PM -> Meeting, > call and discuss pending tasks with developers
9AM - 12AM -> Learn soemthing > Learn how to use composio effectively
8PM - 10PM -> Game > play couter strike and pubG

'''
How do I achieve this?

@shantanuo shantanuo reopened this Jul 2, 2024
@shantanuo
Copy link
Author

Again, mentioning that part in description itself is the key.

description=f"Use IST (Indian Standard Time). Book slots according to {todo}. Label them with the work provided to be done in that time period. Schedule it for today. add the description that is mentioned after greater than sign. Today's date is {date} (it's in YYYY-MM-DD format) and make the timezone be {timezone}.",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants