Commits

Anthony Tuininga  committed b39cc24

Use datetime all the time since that is what is returned from the database.

  • Participants
  • Parent commits 984e776

Comments (0)

Files changed (1)

File ceGUI/SimpleControls.py

 
     def GetValue(self):
         wxDate = self.GetDate()
-        return datetime.date(wxDate.GetYear(), wxDate.GetMonth() + 1,
+        return datetime.datetime(wxDate.GetYear(), wxDate.GetMonth() + 1,
                 wxDate.GetDay())
 
     def SetValue(self, value):
     def GetValue(self):
         wxDate = wx.DatePickerCtrl.GetValue(self)
         if wxDate.IsValid():
-            return datetime.date(wxDate.GetYear(), wxDate.GetMonth() + 1,
+            return datetime.datetime(wxDate.GetYear(), wxDate.GetMonth() + 1,
                     wxDate.GetDay())
 
     def SetValue(self, value):