We are using %l which gives an extra space for 1 digit hours. Instead use %I for the long time format in order to retain alignment and %-I for short time formats. Likewise in short time formats use %-H instead of %H.