Fix class name 9e
This commit is contained in:
@ -250,10 +250,12 @@ class EntryCSVProcessor:
|
||||
event.end_datetime = timezone.make_aware(datetime(2025, 1, 25, 17, 0))
|
||||
event.save()
|
||||
|
||||
# 日付が必要な場合のフォールバック
|
||||
entry_date = self.date_converter.convert_date(row['entry_date'])
|
||||
if entry_date:
|
||||
entry_date = entry_date.replace(hour=9, minute=0)
|
||||
# entry_dateをdatetimeに変換
|
||||
if 'entry_date' in row:
|
||||
try:
|
||||
entry_date = datetime.strptime(row['entry_date'], '%Y/%m/%d %H:%M:%S')
|
||||
except ValueError:
|
||||
entry_date = datetime.strptime(row['entry_date'], '%Y/%m/%d')
|
||||
else:
|
||||
entry_date = event.start_datetime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user