Support » Plugin: Events Manager » Cannot import event dates

  • Resolved ukremmin



    I lost several days trying all kinds of permutations,
    but cannot get the import to work. Please help!

    I am using this importer:

    With this csv-file:

    Event_1,post content text,Hauptstr. 5,Bremen,Stadthalle,Deutschland,12345,”2013-07-27″,”2013-07-27″,”00:00:00″,”00:00:00″,1,1

    I tried several date and time formats, but when opening the imported event,
    the dates, times and all_day_event check box are empty.

    These did not work for example:
    “2013-07-27 00:00:00”

    Everything else can be imported (location or event name for example), just not the date and time related entries.

    Any ideas? What is the correct date and time format? Or am I missing a database field?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hiya,

    Where has the importer you’re using come from? I’m not aware of one so if it’s not working the chances are you’d need to contact the original developer to work out any issues.


    Plugin Support angelo_nwl


    haven’t tried this one but will do try it and update you here though can’t promise it today.

    Hi Phil,

    this importer was mentioned by Marcus:

    He did not say if he tested it, though.

    Plugin Author Marcus


    NetWebLogic Support

    i didn’t. you’d need to figure that one out by playing with it yourself atm.

    for the events manager bulk importer mentioned at
    The code out-of-the-box is hardcoded to start each event at midnight.
    edit this file:

    corrected code is here (a bodge; I don’t really know php)

    The fix is at line 480. You will see I have commented out the old regexp date match search, and also the line where the time of the event was hardcoded – for both the start and end date.
    Your CSV can then contain a start/end date in the format
    ,28/08/2013 18:00:00,28/08/2013 21:00:00,
    and this imports very well.

    (the regexp is now searching for dd/mm/yyyy hh:mm:ss)

    Thank you! Thank you! Thank you!

    It works. What a relieve….

    For everybody else who needs to import from csv with this importer here’s one hint:
    In the headline of your csv don’t use the words “event_start_date” and “event_end_date” (as a look into the database would suggest), but just use “start” and “end” as column headings for the start and end dates of the event.

    Also use “summary” for the event’s title.

    For the location it is different: here you use the same names as in the database (I am using a plugin called “Database Peek” to look them up).
    For example a column in your csv called “location_town” will map correctly to the location_town in the database.)

    an example csv is here
    note that the column locations are not important (I think) as the importer converts the data to a named array; it is the name of the column headings (the first row) that are crucial and must match that as defined in the class.EM_ImpExpImport.php file.

    I admire this import utility’s ability to handle custom event attributes and to look up existing locations

    Ups, I produced a typo in my post above and your csv reminded me:

    This is wrong:
    “but just use “start” and “end” as column headings for the start and end dates of the event.”

    Instead of “start” and “end” it is “dtstart” and “dtend”

    Sorry for that (I’m tired)

    I can confirm that the column locations are not relevant.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cannot import event dates’ is closed to new replies.