Skip to content

Commit fca6b28

Browse files
committed
Improve send_at example in README to include UTC timezone
1 parent 36a05ce commit fca6b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ import datetime
217217

218218
scheduled = client.notifications.create(
219219
body="This notification will be sent after 60 seconds",
220-
send_at=(datetime.datetime.utcnow() + datetime.timedelta(seconds=60)).isoformat()
220+
send_at=(datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(seconds=60)).isoformat()
221221
)
222222
```
223223

0 commit comments

Comments
 (0)