Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions news/URB-3660.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Use reception date for incoming notice event dates
[daggelpop]
11 changes: 2 additions & 9 deletions src/Products/urban/browser/cron/notice.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,8 @@ def create_incoming_event(self):
api.content.transition(self.event, "close")

def fill_incoming_event(self):
usable_date = None
if self.notification.send_date:
usable_date = self.notification.send_date
elif self.notification.status_date:
usable_date = self.notification.status_date

if usable_date:
event_date = DateTime(str(usable_date))
self.event.setEventDate(event_date)
event_date = DateTime(str(self.notification.reception_date))
self.event.setEventDate(event_date)

self.event.store_incoming_notice(
self.notification.noticeId,
Expand Down