ERROR DATE TRACKING
-
Hi, good afternoon
For 1 or 2 days, the shipping date appears incorrectly.
Today we are June 1, 2022, instead it shows June 22, 2001. I attach photographs.PS: The website is from Spain.
Image1: https://ibb.co/k1jNCkj
Image2: https://ibb.co/SRWf59n
Image3: https://ibb.co/HddDfyzPlease fix this bug as soon as possible, I am receiving complaints from my clients.
Kind regards !
-
I’m having the same problem!
How do you add tracking information in order?
I add the tracking information by editing the order.
Please review the screenshots I have included
Image1: https://ibb.co/k1jNCkj
Image2: https://ibb.co/SRWf59n
Image3: https://ibb.co/HddDfyzThe date is also wrongly displayed when the mail is sent to the client (image3).
______
I have installed version 3.3.2 and it works correctly.
The problem is in the new version of the plugin 3.4 (please review the changes in that version.)-
This reply was modified 3 years, 10 months ago by
djboro88.
Hi @djboro88,
We checked with the latest version of the plugin but we can’t replicate this issue. Which date format do you use for your website.
To check the date format on your WordPress admin dashboard navigate to Settings > General and check the Date Format.Thanks
This format: j \d\e F \d\e Y
I attach a screenshot.
https://ibb.co/q7HXK4LI checked with this date format and I can’t replicate any issue with the date.
Another user also has the same problem @wikisaqui
I have WP v6.0 with PHP 8.Some change that was made in the last update has caused this problem.
In v3.3.2 it works fine, but in 3.4 it doesn’t.
Something has been changed that is affecting the dates.My website is also in Spanish, could that be related to the problem?
SOLUTION
@djboro88 I was playing around and apparently if you introduce the date in the format DD-MM-YY it works fine.
Example: For June 2 2022 you must introduce 02-06-22.I developed a simple jQuery code that handles this automatically with the plugin’s date input:
add_action( 'admin_footer', function () { ?> <script> jQuery(window).bind("load", function () { // Order: Format shipping tracking date var avtDatePicker = jQuery('#date_shipped'); function updateDateShipped () { avtDatePicker.val(moment(avtDatePicker.val(), 'YYYY-MM-DD').format('DD-MM-YY')); } if (avtDatePicker) { updateDateShipped(); avtDatePicker.on('change', updateDateShipped); } }); </script> <?php });Just add this to your theme’s (or child theme’s) functions.php file or use the Code Snippet plugin.
If your site doesn’t support jQuery let me know and I will provide you a pure JS alternative.
-
This reply was modified 3 years, 10 months ago by
Wikisaqui.
I would like to keep the format of date, day, month in letters and full year.
In any case, something must have changed that is affecting it, since I am now with version 3.3.2 and it works without problem, but it is updating to 3.4 and it gives the error.
With the subject of the script that you have sent, the author @zorem of the plugin may have some idea of how to keep it working, regardless of whether it is from one language or another.
@djboro88 This fix won’t change the format in which the date is displayed across the platform (or by the tracking system). It will only change the input format.
In other words, it only changes the format here:
The format on the rest of the platform will remain untouched:
However, if you don’t like this fix, an alternative would be to downgrade your version of the plugin using WP Rollback.
I will check the old version(3.3.2) and the new version(3.4) and see the changes and try to replicate the issue in Spanish.
I have downgraded to 3.3.2.
If the author does not give a better solution, I will have to accept the fix you propose.
Thank you @wikisaquiWe are waiting, @zorem
Thanks ! -
This reply was modified 3 years, 10 months ago by
The topic ‘ERROR DATE TRACKING’ is closed to new replies.