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
Serializable._date() returns a date string with a hard-coded 'GMT' timezone representation regardless of the actual timezone of the datetime object.
Neither the RSS 2.0 Specification nor the RFC 2822 (section 5.1 SYNTAX) require a GMT/UTC value for the datetime, just that it follow the specified format.
I would suggest that instead of blindly returning 'GMT' for the timezone, either use the tzname() of the timezone aware datetime object and default to 'UTC' if it returns None, or convert any timezone aware datetime objects to UTC and then return the new value + 'UTC' as the timezone value.
The text was updated successfully, but these errors were encountered:
Serializable._date() returns a date string with a hard-coded 'GMT' timezone representation regardless of the actual timezone of the datetime object.
Neither the RSS 2.0 Specification nor the RFC 2822 (section 5.1 SYNTAX) require a GMT/UTC value for the datetime, just that it follow the specified format.
I would suggest that instead of blindly returning 'GMT' for the timezone, either use the tzname() of the timezone aware datetime object and default to 'UTC' if it returns None, or convert any timezone aware datetime objects to UTC and then return the new value + 'UTC' as the timezone value.
The text was updated successfully, but these errors were encountered: