Commit 5bd4baf6 authored by Darko Poljak's avatar Darko Poljak

Merge branch 'master' of https://github.com/telmich/ctt

parents e4227380 8d7da9aa
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# 2012 Nico Schottelius (nico-ctt at schottelius.org)
# 2012-2018 Nico Schottelius (nico-ctt at schottelius.org)
# 2016 Darko Poljak (darko.poljak at gmail.com)
#
# This file is part of ctt.
......@@ -30,6 +30,7 @@ import os.path
import re
import glob
import collections
import sys
import ctt
import ctt.listprojects
......@@ -243,6 +244,7 @@ class Report(object):
'''
report = {}
start_datetime = datetime.datetime.strptime(time, ctt.DATETIMEFORMAT)
delta = datetime.timedelta(seconds=int(float(entry['delta'])))
end_datetime = (start_datetime + delta).replace(microsecond=0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment