First of all, I would like the thank the developers of this great plugin, but I have a problem I could not find its solution
I hhave this two codes([wpdts-custom format=”d/m/Y”], [wpdts-custom format=”d/m/Y” start=”-1 day”]) on my blog, [wpdts-custom format=”d/m/Y”] means today and [wpdts-custom format=”d/m/Y” start=”-1 day”] means yesterday but once is 12am, [wpdts-custom format=”d/m/Y”] changes to today’s date but [wpdts-custom format=”d/m/Y” start=”-1 day”] doesn’t change till 1/2 am, what could be the problem?
What time zone are you in? Is it possible that your time zone is changing in 30 min? (There are such time zones in India, for example.) What is the time zone set in your WordPress General Settings? Also, do you use those on the same page and are you using caching plugin? You may also try using start="today -1 day" or start="today -24 hours" attribute instead of start="-1 day" only. Or even [wpdts-custom format="d/m/Y" days="-1"]. Please try and send a feedback on those. Thanks!
Unfortunately I cannot reproduce your error/bug but if today’s date is shown correctly then [wpdts-custom format=”d/m/Y” start=”today 00:00:00″ days=”-1″] must absolutely show the correct date because the final date will be calculated from the 00:00:00 time minus exactly 24 hours (-1 day) on every page visit.
I think maybe the issue in my general settings, I have Universal time is 2023-03-13 08:24:55.Local time is 2023-03-13 09:24:55 which means your plugin is using my local time for today and yesterday and the rest, it uses the universal time
[wpdts-custom format=”d/m/Y”] uses my local time, that’s why once it is 12am it changes while [wpdts-custom format=”d/m/Y” start=”-24 hours”] changes on 1am which means [wpdts-custom format=”d/m/Y” start=”-24 hours”] is using the universal time
The shortcode always uses the WordPress General Settings time zone as a start point for calculations. There are no different time zones for different shortcodes. Can you please temporary try to switch to a default theme (one from WordPress) and turn off all plugins to check if the problem persists and if the issue is cause by conflict with another plugin or your theme?
We have not had this problem with other user. You are the first reporting it and unfortunately we cannot reproduce it. With over 10 000 users and counting, and many of them using the plugin it is unlikely that no one has seen this issue by now. I suppose it might be an issue with your WordPress settings or the server setup. So, please troubleshoot and give us a feedback again. Thank you!
I hhave changed my default WordPress timezone in wp-settings.php from date_default_timezone_set( ‘UTC’ ); to date_default_timezone_set( ‘Africa/Lagos’ ); though l read this ain’t recommended by wordpress and I have also changed my server timezone to my local timezone but nothing changed, UTC is still there and is always an hour late to my local time