Those tables of data on the admin side are all displayed using the jQuery datatables library: https://datatables.net/
That plugin library also handles all the exporting and printing functions.
However, I have to set up the tables with some javascript to define columns, and sort/search functions, etc. In order to makes the date columns sortable, I had to embed a hidden timestamp value for each data before the actual date in each cell, so that datatables can sort numerically. Otherwise, it can’t sort properly for each possible date format that various sites could be using.
I create the timestamp using PHPs very simple, and usually very accurate, strtotime function, which parses a text date/time into a timestamp. I then had to add some code to extend the export function of datatables to strip off the first 45 characters from the date before printing/exporting, which should have removed the timestamp (always the same length) as well as the html span text that surrounds it.
My best guess is that since you are including the day before the date in your site’s date format, that is somehow breaking the PHP strtotime function, and it’s outputting a null value, or a shorter value, somehow, that is then causing my function that removes the first 45 characters to strip out the first two letters of the date.
So, there are a couple of ways you can help me verify if this is the case:
- First, use the inspect feature of your browser to inspect one of the dates in the date column so you can hopefully see the hidden span where the timestamp is. If you can, please copy the full HTML text from that column and paste it here (you might have to include it in a code block so that www.ads-software.com doesn’t try to interpret the HTML). Then I can see if there is something wrong with the timestamp output.
- Go to your WordPress general settings and change the date format to NOT include the spelled out day before the full date. Just use a more standard date format with only numerical day, month, and year. If you need to enter a custom format to get that kind of output. You can find the format characters you can use here: https://www.php.net/manual/en/datetime.format.php
Try something “standard” like: d/m/Y or m/d/Y depending on if you prefer day or month first.
After you change the format and save your settings, try the export again. Then we will know if it’s the format you were using (if it works), or something with French translation (if it still doesn’t work).
My code saves the dates in the database in standard MySQL format, but translates them using your WordPress date settings whenever it shows them on the screen, and datatables uses what is shown on the screen.
Please send me the results of #1, and then let me know what happens when you change date display formats, per #2. That will give me a place to start looking to see if there is a way to fix this. So far, after many years of this plugin being available, you’re the only one to report this issue.