ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 3 replies, has 3 voices, and was last updated by ArabicSymfony ArabicSymfony 3 years, 6 months ago.

  • Creator
    Topic
  • #1747

    bojanni
    Participant

    Hi,

    Importing of customers from Magento (Channel) results in an error:

    [error] Invalid datetime “2013-02-22T23:05:45+01:00”, expected format Y-m-d H:i:s.

    How can I solve this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #1756
    ishakuta
    ishakuta
    Participant

    Hello, what Magento version you’re importing from?
    I’ll try to reproduce and let you know.

    #1888

    bojanni
    Participant

    Hi,

    I’m using Magento 1.8.1

    #2616
    ArabicSymfony
    ArabicSymfony
    Participant

    for quick solution to see the result (inside oroplatform but i think should resove inside orocrm)
    go to file crm-application/vendor/oro/platform/src/Oro/Bundle/ImportExportBundle/Serializer/Normalizer
    and add this lines after line 65
    if($format==”Y-m-d”)
    {
    $date = strtotime((string) $data);
    $data = date(‘Y-m-d’, $date);
    }
    if($format==”Y-m-d H:i:s”)
    {
    $date = strtotime((string) $data);
    $data = date(‘Y-m-d H:i:s’, $date);
    }

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.