• Hi,

    Firstly, great plugin, it is doing everything I hoped it would.

    I found just one little issue, I have a Buddypress datebox xprofile field, and it is always exporting as 1970-01-01.

    If I change:

    if($bp_fields[$data->field_id]->type == 'datebox') {
         $data->value = date("Y-m-d H:i:s", $data->value);

    with the code below, it works just fine:

    if($bp_fields[$data->field_id]->type == 'datebox') {
        $date = new DateTime($data->value);
        $data->value = $date->format($wpue_config->date_format);

    Cheers,
    Mark

    https://www.ads-software.com/plugins/wp-users-exporter/

Viewing 1 replies (of 1 total)
  • Hello,

    I’m also getting same date format with “1970-01-01”.

    I have updated your code,

    if($bp_fields[$data->field_id]->type == 'datebox') {
        $date = new DateTime($data->value);
        $data->value = $date->format($wpue_config->date_format);

    But its not working, please can you see the code again please…

    • This reply was modified 7 years, 9 months ago by adityashevle.
Viewing 1 replies (of 1 total)
  • The topic ‘Buddypres datebox not exporting’ is closed to new replies.