What are the pros and cons of storing a DateTime as a timestamp in Room DB? is it good practice? because I heard that will lose control of timeZone if do so, how do you handle this process guys?
h
hfhbd
10/29/2021, 7:01 PM
Just store the ISO-8601 string from
Instant
m
Mihail Ya
11/03/2021, 9:37 AM
Storing string representation of date can impact on queries where you want to compare dates (eg: it will be impossible to select rows where the date column is between two dates)
h
hfhbd
11/03/2021, 9:40 AM
ISO8601 is sorted, so filtering/comparing is possible