Fix fatal error on time format

The original Joomla calendar form field supports the time format too. Since the JS time format is not the same as the PHP format just replacing the % fails into a fatal error. Replacing the JS time format with the PHP equivalent fixes this issue.