fix(core): correct date format to include day instead of month number (#3043)

This commit is contained in:
Nagarjuna 2025-12-30 10:11:47 +05:30 committed by GitHub
parent 75dbc74713
commit 99c8d68587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@ object DateHelper {
val inputDate = LocalDate(dateList[0], dateList[1], dateList[2])
val now = Clock.System.now().toLocalDateTime(TimeZone.currentSystemDefault()).date
val formatted = "${inputDate.month.number} ${getMonthName(inputDate.month.number)} ${inputDate.year}"
val formatted = "${inputDate.day} ${getMonthName(inputDate.month.number)} ${inputDate.year}"
val today = now
val yesterday = today.minus(1, DateTimeUnit.DAY)