Fixed the entry model to accept datetime instead of a string containing the creating date

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2025-06-25 17:26:52 -03:00
parent e8f5d4b877
commit 56e42c51bd
3 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -375,8 +375,8 @@ class EditEntryScreen(Screen):
service_manager = self.app.service_manager
entry_service = service_manager.get_entry_service()
# Get current date
current_date = datetime.now().strftime("%d/%m/%Y")
# Get current date as datetime object
current_date = datetime.now()
new_entry = entry_service.create(
travel_diary_id=self.diary_id,