• Resolved prsmwpaccount

    (@prsmwpaccount)


    I want to export the participants database and import it to my new website.
    When re-importing, every data are OK except the Date Recorded which is fixed to the today’s date. However CSV option is thicked in the Recorded Date field settings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Normally, the “date_recorded” field will use the current date/time if the CSV import is creating new records.

    However, you’re right it should be possible to import this value. First, you must have the “Allow Record Timestamps to be Edited” setting checked. This is in the plugin settings under the advanced tab.

    However, there is a bug that prevents this from working for CSV imports. I will explain how you can edit the plugin so it will work. The next release of Participants Database will fix this.

    In the file classes/PDb_submission/main_query/internal_column.php on line 63, you’ll see:

    $this->value = $initialvalue;

    Add a line after that so you end up with:

    $this->value = $initialvalue;
    $this->skip = false;

    Now you will be able to import your record timestamps.

    Thread Starter prsmwpaccount

    (@prsmwpaccount)

    Hi , this patch is working fine ! thanks for your great support ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Export/Import date missing’ is closed to new replies.