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

1 Answer 1

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
  • works fine. we'll do a PR on Git Commented Mar 19, 2021 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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