+import datetime
+
from flask import abort
from ui import config
build.build_runner = Runner.get_or_create_by_id(runner.get('id'))
if not build.build_runner.runner_name:
build.build_runner.runner_name = runner.get("description")
+ date = datetime.datetime.strptime(build_stage.get("created_at"), "%Y-%m-%d %H:%M:%S UTC")
+ build.build_date = date
db.session.add(build)
db.session.commit()
if build.build_status in ['failed', 'canceled']: