Correct datetime attribute references

This commit is contained in:
George Lacey 2016-09-20 20:35:58 +01:00
parent 774497c1f0
commit 88319cba3c

View File

@ -26,8 +26,8 @@ class LogEntry(object):
def datetime_string(self):
x = self.datetime
return "%s-%s-%s %s:%s:%s" % (x.year(), x.month(), x.day(),
x.hour(), x.minute(), x.second())
return "%s-%s-%s %s:%s:%s" % (x.year, x.month, x.day,
x.hour, x.minute, x.second)
def get_datetime(datetime_string):