Fixed FormatTime function not truncating the decimal part of the hour display (Fixes #46)