• Resolved dannetting

    (@dannetting)


    Hi guys,

    Together with THIS thread, this shortcut is almost exactly what I need.

    I need the text to update to show the date of the next Thursday, which changes to the following week after 7:30pm on that day. Using the above thread I’ve managed to do that.

    However, is it possible to get the time to change based on the user’s timezone and not my own? I’ve used a VPN to test if it changes based on specific server locations, but it doesn’t appear to.

    This is for a webinar that is schedule to go out every Thursday at 7:30pm based on the attendees timezone, so I’d like the date to automatically update on the landing page based on individual timezones as well if possible.

    I hope that makes sense. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dannetting

    (@dannetting)

    Sorry I’ve just seen some previous threads that say this is not possible. Hopefully this feature gets added in the future through the Pro version.

    Plugin Author Denra.com

    (@denra)

    Hello @dannetting,

    Unfortunately the plugin does not work with user’s time zone. It works with the time zone which set in the General Settings of the WordPress installation.

    However you can use the time_zone attribute to show the correct time in a selected time zone. For example:

    New York: [wpdts-custom format="m/d/y, g:i a" next="Wed 19:00" time_zone="America/New_York"]
    Paris: [wpdts-custom format="m/d/y, g:i a" next="Wed 19:00" time_zone="Europe/Paris"]
    Tokyo: [wpdts-custom format="m/d/y, g:i a" next="Wed 19:00" time_zone="Asia/Tokyo"]
    etc.

    You may find all time zones here:
    https://www.php.net/manual/en/timezones.php

    The change in time based on current location is planned for the Pro edition of the plugin which is in development but took longer than expected to release it due to many reasons. Once we have the Pro edition based on an annual subscription ready, there will be an option for the result of the shortcode to display the date and the time according to visitor’s location/browser.

    Thank you for using our plugin and supporting us!

    Thread Starter dannetting

    (@dannetting)

    Thank you. Displaying the correct time isn’t the problem, but rather I want the date to change to the next webinar date when the individual passes Thurs 7:30pm in their time zone. No problem, I’ll keep an eye on things in the future.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pull time from users machine?’ is closed to new replies.