Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Bug-Fix #416: Fixed Transactions appearing out of scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwa-Raghavendra committed Jan 9, 2022
1 parent c5007a4 commit c161e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/ivy/wallet/base/DateExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ fun LocalDateTime.timeLeft(
}

fun startOfMonth(date: LocalDate): LocalDateTime =
date.withDayOfMonth(1).atStartOfDay()
date.withDayOfMonth(1).atStartOfDay().convertLocalToUTC()

fun endOfMonth(date: LocalDate): LocalDateTime =
date.withDayOfMonth(date.lengthOfMonth()).atEndOfDay()
date.withDayOfMonth(date.lengthOfMonth()).atEndOfDay().convertLocalToUTC()

fun LocalDate.atEndOfDay(): LocalDateTime =
this.atTime(23, 59, 59)
Expand Down

0 comments on commit c161e38

Please sign in to comment.