fix: correctly add datetime field as datetime in json migration

This commit is contained in:
Travis Abendshien
2026-05-08 13:14:21 -07:00
parent a5f2702414
commit c414bc98e8

View File

@@ -339,7 +339,7 @@ class Library:
),
)
elif LEGACY_FIELD_MAP[legacy_field_id]["type"] == DatetimeField:
self.add_text_field_to_entry(
self.add_datetime_field_to_entry(
entry_id=(
entry.id + 1
), # NOTE: JSON IDs start at 0 instead of 1