CRM-2340 Date format dd/mm/yyyy for civicrm contact import (patch)

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.8
    • Fix Version/s: 2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Here is a patch which adds the date format "dd/mm/yyyy" to Core/Form/Date.php and Utils/Date.php, so that Import can support that date format. The date format is rather common in Canada and Europe.

      Note: unlike the other regexes, it only matches '/^\d\d[-\/]\d\d[-\/]\d\d\d\d/' without the ending '$'. This is because the data we are importing has the date and time in the field (ex: "26/04/2007 15:31"). I think that the Import functions should tolerate this

      Patch was generated using the SVN trunk. Tested in CiviCRM 1.8 PHP5.

      Regards,

      Mathieu Lutfy (bgm on freenode)
      Koumbit.org

        Attachments

          Activity

          [CRM-2340] Date format dd/mm/yyyy for civicrm contact import (patch)
          Sameer Mare added a comment -

          Fixed in revision 11925.

          Manish Zope added a comment -

          Verify for 2.0

          Yashodha Chaku added a comment -

          tested ok -r16180

            People

            • Assignee:
              Yashodha Chaku
              Reporter:
              Mathieu Lutfy

              Dates

              • Created:
                Updated:
                Resolved: