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

45 minute time slots not working as expected #562

Open
andrejwright opened this issue Aug 10, 2020 · 1 comment
Open

45 minute time slots not working as expected #562

andrejwright opened this issue Aug 10, 2020 · 1 comment

Comments

@andrejwright
Copy link

andrejwright commented Aug 10, 2020

Hi,
When I set timeInterval and step to 45, the grid doesn't work as expected.
For example, I will see 00:00, 00:45 and then 01:00. Where I would expect to see 00:00, 00:45 and then 01:30.

Screenshot 2020-08-10 at 15 25 52

I am using ionic 5 Angular and 0.6.6 of ionic2-calendar

Here is my HTML code:
<calendar [eventSource]="eventSource" [calendarMode]="calendar.mode" [currentDate]="calendar.currentDate" [startingDayMonth]="1" (onCurrentDateChanged)="onCurrentDateChanged($event)" (onEventSelected)="onEventSelected($event)" (onTitleChanged)="onViewTitleChanged($event)" (onTimeSelected)="onTimeSelected($event)" step="45" formatHourColumn="HH:mm" timeInterval="45" class="calendar" > </calendar>

How do I fix that?

@twinssbc
Copy link
Owner

@andrejwright 45 is not supported. It is explained in the README.

timeInterval (version >= 0.3)
It is used to display the rows using more accurate time interval in weekview and dayview. For example, if set to 30, then the time interval between each row is 30 mins. The unit is minute. **It should be the factor or multiple of 60, which means 60%timeInterval=0 or timeInterval%60=0**.
Default value: 60

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

2 participants