Same issue as was fixed in the SunLocation code #246
If you have a time crossing midnight and the Pre/Post offsets are applied and they take the value below zero it will screw up the values.
Solution will be to convert to a real time value and then convert back to minutes. There's probably an easier way then what I've done :)