Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9017

Credit card payments: cannot validate if the month format is numeric ('m', instead of default 'M')

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.6
    • Fix Version/s: 4.1.0
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      If I set 'm Y' as the date format for "credit card expiration dates", CiviCRM systematically responds 'Credit card expiration date cannot be a past date.'

      I tracked this down to CRM/Utils/Rule.php, currentDate().

      See proposed patch.

      Although I'm not sure if this should be fixed in the contribution form to generate an element always with the identifier "credit_card_exp_date[M]".

        Attachments

          Activity

            People

            • Assignee:
              mlutfy Mathieu Lutfy
              Reporter:
              mlutfy Mathieu Lutfy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: