The first is a problem in stock KSP because the stock Kerbin year is not 365 kerbin days. (nor is it 365 earth days either.)
The second is a possible problem in modded solar systems because the "homeworld" day is not necessarily the same as a Kerbin day when the homeworld isn't Kerbin.
If possible, these values should come from something queried in the game's API, or from querying the orbital information about the bodies themselves.
The severity of this bug isn't that bad since it only affects the display of things and all the real physics calculations just use seconds anyway, but it still should be possible to do something about it.
The TimeSpan class contains this:
It also contains this:
The first is a problem in stock KSP because the stock Kerbin year is not 365 kerbin days. (nor is it 365 earth days either.)
The second is a possible problem in modded solar systems because the "homeworld" day is not necessarily the same as a Kerbin day when the homeworld isn't Kerbin.
If possible, these values should come from something queried in the game's API, or from querying the orbital information about the bodies themselves.
The severity of this bug isn't that bad since it only affects the display of things and all the real physics calculations just use seconds anyway, but it still should be possible to do something about it.