Exemplo 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
Exemplo 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