• Resolved rocketgmbh

    (@rocketgmbh)


    Hi all,

    We want to change the format of the submission date of forms in the backend as well as the csv export. The gist below does only override the format in the backend. The dates in the export remain unchanged.

    https://gist.github.com/wpmudev-sls/335de2453c2630196017441a08e9f259

    In the plugin’s source code we found the class-export.php. But it seems we have to override the entire export instead of applying a filter for the date format. What is the fasted way to change the format in the csv as well?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @rocketgmbh,

    I hope you are keeping well and thank you for reaching out to us.

    I have pinged our developers to see if a workaround could be suggested and we’ll update you here once we have feedback.

    Kind Regards,
    Nebu John

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @rocketgmbh,

    We have updated the code snippet so that it would support the CSV export as well. Please find the updated code here: https://gist.github.com/wpmudev-sls/335de2453c2630196017441a08e9f259

    Please test this on a staging/dev environment before pushing it to your live website.

    I hope that helps, please feel free to get back to us if you need any further clarification.

    Kind Regards,
    Nebu John

    Thread Starter rocketgmbh

    (@rocketgmbh)

    Hi @wpmudevsupport14

    The code works as intended.

    Thanks a lot!

    Thread Starter rocketgmbh

    (@rocketgmbh)

    Hi @wpmudevsupport14

    Actually, we have faced a problem with our localication.

    In line 38 the string to format is “Okt 2, 2023 @ 1:35 PM” (de_CH) but the function is returning false because the format “M d, Y \@ g:i A” is only allowing months in english. So in this case, an error on line 43 is thrown.

    Is there any clever solution to deal with different locals? As a workaround we did a string replace from Okt to Oct and all the other months which could be affected.

    Kind regards
    Rocket

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @rocketgmbh

    Thank you for response!

    I must say that I’m not sure about other solution that just replacing strings so I have asked our developers for advice on that.

    I or one of my colleagues will update you again here once we got response.

    Best regards,
    Adam

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @rocketgmbh

    I just got an update from developers and it seems that the solution you went for (replacing strings) is a reasonable one, they suggest sticking to it.

    At least for now. If they’ll come up with something better (more efficient), they’ll update the gist and let us know (so we’ll notify you too) but it seems string replacement will be the way to go for now.

    Best regards,
    Adam

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Forminator Submission Date Format in CSV’ is closed to new replies.