def bm_disconnect_db():
buildmonitor_db.disconnect_db()
+
#===============================================================================
# [job_submit.py]
+def transform_date(date):
+ # Currently, we just remove timezone part (e.g., '+0900')
+ # Should we consider timezone in the future??
+ dd = date.split(' ')
+ return dd[0]+' '+dd[1]
+
def sr_submit_for_sr_status(bm_git_tag):
print '[%s] enter sr_submit_for_sr_status\n' % (__file__)
print '[%s][Submit]\n' % (__file__)
# get vars
- commit_date = content.get("commit_date")
+ commit_date = transform_date(content.get("commit_date"))
commit_msg = content.get("commit_msg")
- submit_date = content.get("submit_date")
+ submit_date = transform_date(content.get("submit_date"))
submit_msg = content.get("submit_msg")
submitter = content.get("submitter")
git_tag = content.get("git_tag")