Make webhook timestamp timezone-aware #4005
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Uh oh!
There was an error while loading. Please reload this page.
Environment
Proposed Functionality
My proposal is to convert the webhook "timestamp" attribute to a UTC-aware ISO 8601 string -
2020-01-24T14:22:26.976422+00:00
. This can be done with the already included datetime.timezone, django.utils.timezone, or pytz.Use Case
Timestamp can be used to ensure the correct processing order of webhooks, and the timezone-naive timestamp is ambiguous. Switching to a UTC-aware timestamp follows standard best practice around datetimes and removes any ambiguity for webhook consumers.
Database Changes
None.
External Dependencies
None.
The text was updated successfully, but these errors were encountered: