OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Installation/Technical Issues or Problems Magento Channel invalid datetime (beta6)

This topic contains 3 replies, has 3 voices, and was last updated by  ArabicSymfony 10 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #25841

    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
  • #25842

    ishakuta
    Participant

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

    #25843

    bojanni
    Participant

    Hi,

    I’m using Magento 1.8.1

    #25844

    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)

The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.

Back to top