WordPress.org

Ready to get started?Download WordPress

Forums

Display timezone (6 posts)

  1. Nick Momrik
    Member
    Posted 10 years ago #

    I think it would be useful to have an option to display the timezone of your blog when all dates/times are displayed.

  2. philor
    Member
    Posted 10 years ago #

    It usually takes me about a week to change all my non-computer clocks from PST to PDT. Hard-coding in my template? I'd probably fix the PST about mid-September :)

  3. NuclearMoose
    Member
    Posted 10 years ago #

    @philor,
    LMAO!
    Adding three letters is hard-coding? LOL. I understand what you are saying. It's a good idea for junior bloggers like me...
    Oh, just thought I'd mention this, too...here we don't move our clocks at all, so it's not an issue for updating. :)
    Find > Replace > PST/PDT...
    LMAO!

  4. philor
    Member
    Posted 10 years ago #

    Absolutely. You wouldn't believe the troubles I've had by burying a single digit of hard-coding in the midst of a ton of stuff that depends on that one magic number. Can I change it? Dozens of ways. Will I remember, though?
    And delightfully enough, a PHPBuilder article on supporting user timezones that aren't the server's timezone starts out

    By allowing the user to specify a timezone, we unwittingly opened a Pandora's Box, out of which flew shrieking timestamp demons who tormented us, and drove us to the brink of insanity.

    and ends up, speaking of supporting daylight/standard conversions

    but for simplicity, we opted to leave that as an exercise for the reader

    (hoping, no doubt, that the reader doesn't know that the first user of any timezone-supporting application lives in Arizona, and doesn't have daylight time, and the second lives wherever it is that they have a half-hour of daylight time. The third lives in Israel, where the starting and ending dates are set each year based on what works best with the movable religious holidays.)

  5. Nick Momrik
    Member
    Posted 10 years ago #

    Moose,
    I have added my timezone in just about every place that I display the time. :-) It would be a nice feature though to have it displayed automatically...For all those freshmen bloggers. ;-)

  6. NuclearMoose
    Member
    Posted 10 years ago #

    @MDV,
    Yeah, it would be nice to have a setting in the OPTIONS panel just like GeoURLs and stuff like that, eh? At least then you wouldn't have to search all over your PHP files to find the instances of your timezone and change it twice per year.
    You could save half the work and just move somewhere like, say Dawson Creek, BC where we don't ever move our clocks to Daylight Savings Time! ;)
    Craig.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.