Date and hour format with seconds
Normally, (custom) date formatting in civicrm is handled by this function:
https://github.com/civicrm/civicrm-core/blob/master/CRM/Utils/Date.php#L300
You'll see at about line 410 that there's no substitution for seconds.
Sounds like a not-very-difficult feature waiting to be added.