From f440aa569a946db83a1db303134418091905342f Mon Sep 17 00:00:00 2001 From: infotexture Date: Tue, 7 Jan 2014 20:09:51 +0100 Subject: [PATCH] Fix custom date field association (To/From) in Reports view --- gui/controllers/reports_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/controllers/reports_controller.py b/gui/controllers/reports_controller.py index 205d471..2da26ca 100644 --- a/gui/controllers/reports_controller.py +++ b/gui/controllers/reports_controller.py @@ -64,8 +64,8 @@ def setDate(self, date): self.endDate = Timings.workStartDateTime() + datetime.timedelta(days=1) def updateCustomDatePicker(self): - self.dpkrTo.setDateValue_(datetimeToNSDate(self.startDate)) - self.dpkrFrom.setDateValue_(datetimeToNSDate(self.endDate)) + self.dpkrTo.setDateValue_(datetimeToNSDate(self.endDate)) + self.dpkrFrom.setDateValue_(datetimeToNSDate(self.startDate)) def updateState(self): self.updateCustomDatePicker()