• Resolved mendelistickmend

    (@mendelistickmend)


    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?

Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Author Denra.com

    (@denra)

    Hi @mendelistickmend,

    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!

    Plugin Author Denra.com

    (@denra)

    PS: The easiest way is to also use [wpdts-custom format="d/m/Y" start="yesterday"]. ??

    Thread Starter mendelistickmend

    (@mendelistickmend)

    My timezone is utc+1 and with the new codes you provided, it is still the same thing

    Plugin Author Denra.com

    (@denra)

    Are both dates displayed on the same page. Do you have a caching plugin turned on for the page/s?

    Thread Starter mendelistickmend

    (@mendelistickmend)

    they are on the same page and I don’t use cache plugin

    Plugin Author Denra.com

    (@denra)

    Is the shortcode [wpdts-date-time] showing the correct current date and time for your time zone when used?

    Thread Starter mendelistickmend

    (@mendelistickmend)

    Yes

    Plugin Author Denra.com

    (@denra)

    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.

    Thread Starter mendelistickmend

    (@mendelistickmend)

    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

    Thread Starter mendelistickmend

    (@mendelistickmend)

    I tthink your plugin is using two timezones

    Thread Starter mendelistickmend

    (@mendelistickmend)

    [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

    Plugin Author Denra.com

    (@denra)

    Hello @mendelistickmend ,

    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!

    Thread Starter mendelistickmend

    (@mendelistickmend)

    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

    Plugin Author Denra.com

    (@denra)

    Can you please check of you are using straight quotes and not curly ones for attributes?

    Thread Starter mendelistickmend

    (@mendelistickmend)

    Am uusing straight quotes, anyways, let’s wait till 12am of my local time, let me see how it goes

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Please Help Me’ is closed to new replies.