Problem
We currently rock our own implementation of DateConverter taken over from myHeartCounts - this leads us to storing the lastActiveDate and dateOfEnrollment with new Date() (easily en/decoded by object.toISOString())instead of admin.firestore.Timestamp.now()).
Solution
We should close the Issue #27 in spezi-firebase first and then implement the dateConverter from spezi-firebase-utils that shell use admin.firestore.Timestamp.now in the future here.
Additional context
This will be a pretty big update as we also need to think about the functions that are using the timestamps (e.g. the nudge creation)
Code of Conduct
Problem
We currently rock our own implementation of DateConverter taken over from myHeartCounts - this leads us to storing the lastActiveDate and dateOfEnrollment with new Date() (easily en/decoded by object.toISOString())instead of admin.firestore.Timestamp.now()).
Solution
We should close the Issue #27 in spezi-firebase first and then implement the dateConverter from spezi-firebase-utils that shell use admin.firestore.Timestamp.now in the future here.
Additional context
This will be a pretty big update as we also need to think about the functions that are using the timestamps (e.g. the nudge creation)
Code of Conduct