• Resolved mikelt68

    (@mikelt68)


    bonjour 

    J’utilise votre plugin pour créer de nouveau champs personnalisés dans ma base de données
    j’ai un problème lors de l’exportation des données avec les champs de dates ! quelque soit le format de date au moment de la saisie dans le champ , la date affichée dans le fichier exporté est toujours la même AAAAMMJJ en français ou YYYYMMDD en anglais  

    pour obtenir un format qui me convient j’utilise la fonction du tableur “format cellule” pour par exemple obtenir une date JJMMAAAA ou DDMMYYYY mais cela ne fonctionne pas , la cellule s’affiche alors comme suit #FMT

    merci par avance pour votre aide

    Bien cordialement
    Michel


    Hello I’m using your plugin to create new custom fields in my database. I’m having a problem exporting data with date fields! Regardless of the date format entered in the field, the date displayed in the exported file is always YYYYMMDD (French) or YYYYMMDD (English). To get a format I like, I’m using the spreadsheet’s “Format Cells” function to get a date in DDMMYYYY or DDMMYYYY, but it’s not working. The cell is displayed as #FMT. Thank you in advance for your help. Sincerely, Michel

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

    (@carazo)

    Michel,

    Sorry but this is the way that ACF saves the date in database.

    Maybe you can use this hook if you want to modify the way the data is shown in the export result:

    $row = apply_filters(
    'acui_export_data',
    $row,
    $user,
    array(
    'columns' => $this->get_columns_to_export(),
    'datetime_format' => $this->get_datetime_format(),
    'order_fields_alphabetically' => $this->get_order_fields_alphabetically(),
    'double_encapsulate_serialized_values' => $this->get_double_encapsulate_serialized_values(),
    'filtered_columns' => $this->get_filtered_columns()
    )
    );
    Thread Starter mikelt68

    (@mikelt68)

    bonjour Javier, merci pour l’information mais je ne vois pas comment intégrer ce hook dans la configuration de ACF , je n’ai que la version de base …merci pour votre aide par avance
    Michel

    Plugin Author Javier Carazo

    (@carazo)

    Sorry but this is not a hook for ACF. This is a hook of this plugin and you can use it in our functions.php file.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.