• Resolved mateusvitor

    (@mateusvitor)


    Before installing I want to clarify something.
    I see you declare the feature of using Server or User Time Zone.
    Can you explain to me how does this work?
    The shortcode will be loaded from the template, so with the datetime for the expiry in GMT+1 (that’s what we’re using). For a user on GMT+6, will he see a countdown for the expiry date that was input into the shortcode, with 5 added hours, or will your JS interpret the expiry date as being UTC (GMT+0) and add 6, because I’m not sure what the server’s TimeZone is.
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ujimoto

    (@ujimoto)

    Server Time will calculate the countdown time based on the time on the server where you host your WordPress website. User time (Not recommended) will take the system time from the users who are visiting your website which is different for everyone based on the location. Hope this explanation helps you to understand the difference between the two types.

    Thread Starter mateusvitor

    (@mateusvitor)

    I made my own counter in the meantime. I know the difference between server time and user/client time. I wanted to show not just the countdown timer, but also the timedate. The counter is independent of timezone because its a duration. But the time no. Sorry for not putting the question any clear at all, I was very stressed in that week.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add shortcode from template with user’s time zone’ is closed to new replies.