-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Error when programme item spans into next day #5
Comments
Hi, Thank you very much for your info. |
yep example schema |
I have to reproduce the same bug because so far nothing like this has happened and no one has reported.
|
When isBaseTimeFormat=false the timeline formatTime function doesnt throw an exception but continues as 23:00, 24:00, 25:00, 26:00, 27:00. isBaseTimeFormat=true will throw an exception. In the attachment *isBaseTimeFormat=false |
@Simba-Mupfunya I checked out your example and you set different dates in startDate and endDate props You have to set the same date in startDate / endDate with full clock hours only. Exampleconst { |
Thanks I know how to solve by splitting the schedule item into two (Day before and Day after) it makes sense |
Hi
When using isBaseTimeFormat=true the "function formatTime" throws an invalid time exception when a programme item spans into the next day e.g starttime 23:50 -> endtime 03:00. When isBaseTimeFormat=false the timeline formatTime function doesnt throw an exception but continues as 23:00, 24:00, 25:00, 26:00, 27:00: see image below
However i have found the issue and can be solved by a small update to the internal formatTime function as follows:
`const formatTime = (index) => {
var date = new Date();
var baseDate = format(date, TIME_FORMAT.DATE);
var time = index < 10 ? "0" + index : index;
`
The text was updated successfully, but these errors were encountered: