Skip to content

Commit

Permalink
Update TaskForm.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Puvikaran2001 committed May 10, 2024
1 parent d8bd6ff commit b5bf5cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ data class TaskForm(
}

fun startDateTime(): LocalDateTime {
return dateRange.rangeStart()!!.plusHours(startTime.hour.toLong()).plusMinutes(startTime.minute.toLong())
return dateRange.rangeStart()!!.withHour(startTime.hour).withMinute(startTime.minute)
}

fun endDateTime(): LocalDateTime {
return dateRange.rangeEnd()!!.plusHours(endTime.hour.toLong()).plusMinutes(endTime.minute.toLong())
return dateRange.rangeEnd()!!.withHour(endTime.hour).withMinute(endTime.minute)
}

private fun timeStatus(): Status {
Expand Down

0 comments on commit b5bf5cf

Please sign in to comment.