Fetching Jira comments returns error or date without timezone
As per this thread https://gitlab.slack.com/archives/C01KLFFDA94/p1615531942019200 (internal).
We found 2 issues with how Jira sends back the created
/ updated
fields for comments:
- When the comment is recently posted, it's returned as
Just now
or5 minutes ago
. This makes our code error out since we doupdated.to_datetime.utc
which returns aninvalid date
error. - Even when the datetime is returned, it's not a standard timestamp. It's a simple datetime in the format
24/Feb/21 2:19 PM
but without the timezone. There is a separate fieldtimeZone
with example value ofAsia/Ho_Chi_Minh
.
Edited by Justin Ho Tuan Duong