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

fix: remove datetime format fn #461

Merged
merged 1 commit into from
Apr 17, 2024
Merged

fix: remove datetime format fn #461

merged 1 commit into from
Apr 17, 2024

Conversation

gcharest
Copy link
Contributor

Summary | Résumé

Quick fix:

the Calendar Event insert method doesn't handle the toiso() function, it expects a string directly.

@gcharest gcharest requested a review from a team April 17, 2024 21:34
@gcharest gcharest self-assigned this Apr 17, 2024
@@ -154,8 +154,8 @@ def test_insert_event_no_kwargs_no_delegated_email(
scopes=["https://www.googleapis.com/auth/calendar.events"],
delegated_user_email="test_email",
body={
"start": {"dateTime": start.isoformat(), "timeZone": "America/New_York"},
"end": {"dateTime": end.isoformat(), "timeZone": "America/New_York"},
"start": {"dateTime": start, "timeZone": "America/New_York"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I think the timing needs to be converted to isoformat (ie something like 2020-03-20T14:28:23.382748). Is the start already in this format? If it is then it is ok, but I thought it was not. Could totally be wrong.

@gcharest gcharest merged commit f401ced into main Apr 17, 2024
7 checks passed
@gcharest gcharest deleted the fix/insert_event branch April 17, 2024 21:42
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

Successfully merging this pull request may close these issues.

2 participants