Bugfix: hour:min format was sometimes incorrect

The hours:minutes format was incorrect when an activity was longer than a
day.