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

Standardize date params in API

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2.3
    • Fix Version/s: 4.0.8
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      The deceased_date param in civicrm_contact_create() uses the date syntax "Y-m-d". If the date is unrecognized, it defaults to December 31st, 1969 instead of throwing an error.
      The activity_date_time param in civicrm_activity_create() also uses "Y-m-d".
      The start_date, end_date params in civicrm_event_create() uses "Ymd".

      Suggest standardizing around array('d' => '31', 'M' => '12', 'Y' => '1969') syntax.

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              dharmatech Dharmatech
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: