Tweak second to hex conversion