Time was incorrectly displayed when opening the "Change date and time" window due to invalid string conversion. Fixed by using different string converting function which does not use printf underneath.