Skip to content

Commit

Permalink
fix: Fixed a bug that the date and time were not being written to the…
Browse files Browse the repository at this point in the history
… server properly.
  • Loading branch information
mathrunet committed Dec 22, 2023
1 parent 2ff5406 commit de2a492
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class FirestoreModelTimestampConverter
key: FieldValue.serverTimestamp()
else
key: Timestamp.fromMillisecondsSinceEpoch(val.toInt()),
} else ...{
key: Timestamp.fromMillisecondsSinceEpoch(val.toInt()),
},
};
}
Expand All @@ -141,6 +143,8 @@ class FirestoreModelTimestampConverter
} else {
res.add(Timestamp.fromMillisecondsSinceEpoch(time.toInt()));
}
} else {
res.add(Timestamp.fromMillisecondsSinceEpoch(time.toInt()));
}
}
return {
Expand Down Expand Up @@ -174,6 +178,8 @@ class FirestoreModelTimestampConverter
res[entry.key] =
Timestamp.fromMillisecondsSinceEpoch(time.toInt());
}
} else {
res[entry.key] = Timestamp.fromMillisecondsSinceEpoch(time.toInt());
}
}
return {
Expand Down

0 comments on commit de2a492

Please sign in to comment.