Changes to display basals from new data model

@jebeck @kentquirk 

These are the changes required for tideline to be able to render basals from the new data model.
Doesn't bother me.

Would you like me to add it as a dependency?  I can also redo this logic using standard Javascript Date objects if you prefer that.