Esempio n. 1
0
 def localized_fact(self):
     """Make sure fact has the correct start_time."""
     fact = Fact(self.activity.get_text())
     if fact.start_time:
         fact.date = self.date
     else:
         fact.start_time = dt.datetime.now()
     return fact
Esempio n. 2
0
 def localized_fact(self):
     """makes sure fact is in our date"""
     fact = Fact(self.activity.get_text())
     fact.date = self.date
     return fact