Fixed bug where ddays should have been initialized
to 0 in almost all cases, except when hhd is 24.

Previous to this fix, the initial value of ddays
was whatever the compiler set.