4

this date and hour format should work: %d/%m/%Y %k:%M:%S but I'm not getting the seconds: 17/02/2021 9:15:%S

Is %S compatible in CiviCRM?

2
0

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.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.