in server/app/plugins/jirastats.py [0:0]
def get_time(string):
"""Converts a jira ISO timestamp to unix epoch"""
ts = time.strptime(re.sub(r"\..*", "", str(string)), "%Y-%m-%dT%H:%M:%S")
epoch_local = time.mktime(ts)
# Account for UTC offset when computer has a local TZ
utc_offset = (datetime.datetime.fromtimestamp(epoch_local) - datetime.datetime.utcfromtimestamp(epoch_local)).total_seconds()
return int(epoch_local + utc_offset)