add 'created' event property

This commit is contained in:
Dmitry Belyaev 2018-04-01 12:54:03 +03:00
parent 2a588ab2fd
commit bc9d60c844
Signed by: b4tman
GPG Key ID: 014E87EC54B77673

View File

@ -86,6 +86,7 @@ def make_event(person, year):
event_date.year, event_date.month, event_date.day))
event.add('dtstart', event_date)
event.add('duration', one_day)
event.add('created', datetime.datetime.utcnow())
event.add('last-modified', datetime.datetime.utcnow())
return event