I\'m using the following code to add intervals. But it doesn\'t seem to work if the times aren\'t on the same day.
For example start = 23:00 and end = 01:00