• Resolved little_bird

    (@little_bird)


    Hi,

    I tried many times to export a client CSV file with the option “Convert timestamp data to date format” enabled, but the columns wc_last_active and last_update in the CSV file are still timestamp.

    What am I doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Javier Carazo

    (@carazo)

    Hello,

    Some of this conditions are not being applied

    if( $this->get_convert_timestamp() && is_int( $value ) && ( ( $this->is_valid_timestamp( $value ) && strlen( $value ) > 4 ) || in_array( $key, $timestamp_keys) ) ){ // dates in timestamp format

    return date( $datetime_format, $value );

    }

    This value is included by default:

    $timestamp_keys = apply_filters( ‘acui_export_timestamp_keys’, array( ‘wc_last_active’ ) );

    So wc_last_active should always be transformed.

    I have a busy week, but this Friday or next week I will do some tests to be sure that it is working on my test sites.

    Plugin Author Javier Carazo

    (@carazo)

    Yes, you were right. I have just fixed it.

    In the next release it will be solved.

    Thanks for reporting.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Timestamp conversion not working’ is closed to new replies.