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

Custom date field format does not match the field date format when called via API

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.4.0, 4.5
    • Fix Version/s: None
    • Component/s: CiviCRM API
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Creating a new custom date field I set the date format to be dd/mm/yyyy.

      When retrieving the date via API the format changes to mm/dd/yyyy

      Reproduction steps:

      Go to demo site
      Create new date custom fields for a relationship
      Set date format to dd/mm/yyyy
      Edit the data in any relationship
      Call that relationship via API
      Notice the date format is not the same as the one defined on the custom field

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              VitorFF Vitor Nobrega
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: