diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/data/repository/realisations/HistoryDatesRepositoryImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/data/repository/realisations/HistoryDatesRepositoryImpl.kt index cc78482..743aa22 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/data/repository/realisations/HistoryDatesRepositoryImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/data/repository/realisations/HistoryDatesRepositoryImpl.kt @@ -20,8 +20,11 @@ abstract class HistoryDatesRepositoryImpl( calculatePsychomatrixByDateUseCase.openPsychomatrixCreatedSubscription().subscribe { it.date.also { date -> - onDateCalculated(date) - dateAddedBroadcast.send(date) + date.withTime(0, 0, 0, 0).also { + dateWithoutTime -> + onDateCalculated(dateWithoutTime) + dateAddedBroadcast.send(dateWithoutTime) + } } } }