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

Case.create API truncates the start_date time

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.7.24
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      When creating a case using the APIv3, the 'start_date' time is truncated.

      Ex: create a Case with "start_date = 20170905091234", CiviCRM will respond that the start_date is "20170905000000". It is reproducible using the API Explorer.

      in api/v3/utils.php, _civicrm_api3_getValidDate() checks the field type, and according to the XML, the type is 'date' instead of 'datetime'.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: