fix the datetime of v1.9

This commit is contained in:
Tamo
2024-11-05 10:30:53 +01:00
parent a1f228f662
commit 48ab898ca2
3 changed files with 65 additions and 13 deletions

View File

@ -146,9 +146,9 @@ fn date_round_trip(
key: &str,
) -> anyhow::Result<()> {
let datetime =
db.remap_types::<Str, SerdeJson<v1_9::LegacyTime>>().get(wtxn, key).with_context(|| {
format!("could not read `{key}` while updating date format for index `{index_uid}`")
})?;
db.remap_types::<Str, SerdeJson<v1_9::LegacyDateTime>>().get(wtxn, key).with_context(
|| format!("could not read `{key}` while updating date format for index `{index_uid}`"),
)?;
if let Some(datetime) = datetime {
db.remap_types::<Str, SerdeJson<self::OffsetDateTime>>()