Store every date in the database as an Instant

This commit is contained in:
AntsyLich
2026-10-10 17:37:43 +06:00
parent 8972882a34
commit 44c1e1915d
68 changed files with 599 additions and 284 deletions
@@ -96,7 +96,7 @@ abstract class BaseUpdatesGridGlanceWidget : GlanceAppWidget() {
val flow = remember {
getUpdates
.subscribe(false, DateLimit.toEpochMilliseconds())
.subscribe(false, DateLimit)
.map { rawData ->
rawData.prepareData(context, rowCount, columnCount)
}
@@ -24,7 +24,7 @@ class WidgetManager(
context(context: Context)
fun init(scope: LifecycleCoroutineScope) {
combine(
getUpdates.subscribe(read = false, after = BaseUpdatesGridGlanceWidget.DateLimit.toEpochMilliseconds()),
getUpdates.subscribe(read = false, after = BaseUpdatesGridGlanceWidget.DateLimit),
securityPreferences.useAuthenticator.changes(),
transform = { a, b -> a to b },
)