Forums

How Do I Localise Time Zones?... (8 posts)

  1. Parb
    Member
    Posted 5 years ago #

    Ok - so here's my query...

    I have a wordpress site set up with a limited number of users.

    Those users are based in the UK and the US.

    Right now whenever someone posts a new posts or comment the time stamp is UK-centric - i.e. GMT. How would I get the time stamps to show the local of the new post / comment being written?

    So - If in the UK it is 5pm (GMT) and someone in the US who is 6 hours behind writes a new post it would show up as either:

    5pm (-6hrs GMT)
    or
    11am (+6hrs GMT)

    Is there a plug-in to allow this? or does anyone think it's a good enough thing to have a crack at making it work?!

  2. Otto
    Tech Ninja
    Posted 5 years ago #

    The Time setting is on the Options->General page of the admin screen.

  3. Parb
    Member
    Posted 5 years ago #

    yes - thanks - i know where the time zone settings are.

    if you read my question carefully you will see that regardless of a single time zone being set how does one get each comment / post time stamped with the authors time zone?!

  4. doodlebee
    Member
    Posted 5 years ago #

    Wasn't this thread closed just a little bit ago?

  5. Doesn't look like there's such a plugin: http://codex.wordpress.org/Plugins/Time

    But it wouldn't be too hard to code if you're good with PHP. Just ask the user for their timezone, store it in a cookie, and then adjust the WP returned times to match their timezone.

  6. Chris_K
    Member
    Posted 5 years ago #

    The dupe of it was.

    As to the original question: eeks. I have no idea! It seems that it is assumed "the blog" has the timezone as opposed to your request to have timezone associated with authors. Seems like a logical candidate for a plugin, but I dont' recall stubmling over anything like it (granted, I've not had the need to search for one either).

  7. Parb
    Member
    Posted 5 years ago #

    Thanks for the replies everyone.

    I've searched high and low for such a plug-in without any luck!
    Looks like I'm going to have to become a whizz at PHP!!

  8. maerk
    Member
    Posted 5 years ago #

    It's a very useful skill :D Go for it!

Topic Closed

This topic has been closed to new replies.

About this Topic