1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

append '+00:00' to now.isoformat() to satify api

just append '+00:00' so that the api calculates the correct accept time
based on UTC
This commit is contained in:
lethliel 2019-08-14 13:33:11 +02:00 committed by lethliel
parent 1e4e7edad5
commit ced4ac6506

View File

@ -2860,7 +2860,7 @@ class Request:
now = datetime.datetime.utcnow()
now = now + datetime.timedelta(hours=hours)
self.accept_at = now.isoformat()
self.accept_at = now.isoformat() + '+00:00'
@staticmethod
def format_review(review, show_srcupdate=False):