Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event not drawing on 31st day of month #107

Open
AmritaTakken opened this issue May 31, 2018 · 2 comments
Open

Event not drawing on 31st day of month #107

AmritaTakken opened this issue May 31, 2018 · 2 comments

Comments

@AmritaTakken
Copy link

No description provided.

@SkyleKayma
Copy link

SkyleKayma commented May 31, 2018

Some code are needed. We can't help you here. Add more context to your request.

@yashpalraj
Copy link

Replace below Function In MonthLoader

@Override
public double toWeekViewPeriodIndex(Calendar instance){
    return instance.get(Calendar.YEAR) * 12 + instance.get(Calendar.MONTH) + (instance.get(Calendar.DAY_OF_MONTH) - 1) / 30.0;
}

With

@Override
public double toWeekViewPeriodIndex(Calendar instance){
    return instance.get(Calendar.YEAR) * 12 + instance.get(Calendar.MONTH) + (instance.get(Calendar.DAY_OF_MONTH) - 1) / instance.get(Calendar.DAY_OF_MONTH);
}

Due to "30.0" value data was not displayed on the 31st day of the month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants