drawTimeRange improvements [issue 535]