Compare commits

..

1 Commits

Author SHA1 Message Date
Valentin Deniaud 620fce0914 agendas: import/export end time event field (#88615)
gitea/chrono/pipeline/head This commit looks good Details
2024-03-25 13:55:52 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -2700,7 +2700,7 @@ class Event(WithInspectMixin, models.Model):
if data.get('end_time'):
try:
data['end_time'] = datetime.datetime.strptime(data['end_time'], '%H:%M')
data['end_time'] = datetime.datetime.strptime(data['end_time'], '%H:%M').time()
except ValueError:
raise AgendaImportError(_('Bad time format "%s"') % data['end_time'])