You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates the parsing of HTTPDate and DateTime time formats to not be as
strict, and allow more variants of the time format. Including UTC
offsets for DateTime.
Fixes#302 by changing time to UTC before formatting so no local offset time is lost.
FormatDateTime
is unsafe!It uses the formatting string
dateTimeFormat = "2006-01-02T15:04:05.99Z"
which essentially just appends theZ
character onto the user's local time.Possible fixes:
"2006-01-02T15:04:05.99Z07:00"
or maybe eventime.RFC3339
(probably breaking)Not sure what your original intentions were so I'll leave this to you.
I originally found this after spending an hour or so debugging why calls to
cloudwatch.GetMetricData
weren't returning any data in the v2 aws SDK.The text was updated successfully, but these errors were encountered: