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
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
Hi @wpmudevsupport14
The code works as intended.
Thanks a lot!
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
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
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