diff options
author | emkael <emkael@tlen.pl> | 2016-05-06 17:30:21 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-09 12:35:54 +0200 |
commit | 4682a28147505362441f29a7af159d8f0fcdfd23 (patch) | |
tree | fc9b0de7ef8a6cc8eed716b58404995d33c9c30d | |
parent | 34a08999a6e1be92f1676d75f72d7bb535392230 (diff) |
* subtracting a day from all-day events on import was unnecessary, let the application handle that
-rw-r--r-- | app/python/fetch_cals.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/python/fetch_cals.py b/app/python/fetch_cals.py index 30e7abc..8b53254 100644 --- a/app/python/fetch_cals.py +++ b/app/python/fetch_cals.py @@ -17,8 +17,6 @@ def update_event_data(db_event, ical_event): (db_event.end_date - db_event.begin_date).seconds % 86400 == 0 ) and ( db_event.begin_date.time() == datetime.time.min) - if db_event.all_day: - db_event.end_date = db_event.end_date - datetime.timedelta(days=1) db_event.last_modified = get_last_modification_time(ical_event) return db_event |