Skip to content

Set Month Does Not Work Properly... #14

@yusefpasha

Description

@yusefpasha

Hi
When you set the month value for the calendar, it starts from 0.
In my opinion, if it starts from 1, it will help more...

Exp:

fun main() {
val calendarPrimary = CalendarFactory.newInstance(CalendarType.CIVIL)
calendarPrimary.set(year = 2023, month = 8, dayOfMonth = 17)

val millis = calendarPrimary.timeInMillis

println(millis)

val calendarSecondary = CalendarFactory.newInstance(type = CalendarType.CIVIL)
calendarSecondary.timeInMillis = millis

println(calendarSecondary.shortDateString)

}

Out :

1694933393081
2023/09/17
(23, 9, 17)

Finally, thanks for PrimeCalendar ❤

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions