Advertisement:

Author Topic: Local time on the forum  (Read 6851 times)

Offline Srinib

  • Jr. Member
  • **
  • Posts: 177
    • India Exit Polls
Local time on the forum
« on: July 07, 2012, 03:12:52 PM »
Is there a standard option in SMF(or a MOD) to show the local time?
If he login from NY, it should show the EST. And if he login from Italy, he should get the Italy local time on his forum.

Offline mashby

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 7,102
  • Gender: Male
  • A wizard is never late,
    • Choppix
Re: Local time on the forum
« Reply #1 on: July 07, 2012, 03:21:54 PM »
Already exists in a way. Look and Layout has Time Offset with an auto detect feature allows each user to set their local time. The theme being used has to include showing the local time. The theme here on SMF does just that. Does that help you out?
Time is always on your side until you run out of it.
Support dude at i360design

Offline MrPhil

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,666
Re: Local time on the forum
« Reply #2 on: July 07, 2012, 06:51:48 PM »
SMF has the default (system, or guest) time, and an hours offset for users. For the default timezone, it's best to select the proper PHP 5 timezone in Admin > Features and Options > General, rather than using an hours offset. Don't rely on the timezone autodetect (unless they've fixed it recently). It used an obsolete format (/etc/GMT+4) without DST (summer time). As for individual members, they still seem to have only an hours offset from default time (not a specified timezone with correct DST rules) in Profile > Look and Layout. For SMF 2.1 it would be really nice to let users select their timezone by name (hint, hint).

I am not aware of any way to autodetect the timezone in use at the browser (getenv('SOMETHING') or $_SERVER['SOMETHING']).
Please do not PM me with support questions, unless I ask you to. Unsolicited PMs for support will be ignored. It's best to have questions and answers in public, so others can research a problem and learn about it without having to ask the question yet again. Thank you!
FAQs | SMF 1.1 fixes | Project ideas
-= From the ashes shall rise a sooty tern =-

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,053
  • Master of BBC Abuse
Re: Local time on the forum
« Reply #3 on: July 07, 2012, 06:57:55 PM »
For SMF 2.1 it would be really nice to let users select their timezone by name (hint, hint).[/i]

Track it.
"My idea of heaven consists of all the things I would go to Hell for."

I need another coding language like I need tertiary syphilis.

Antechinus modzRantyheinous themez - PSD pack for 2.0.x default theme

Offline live627

  • SMF Hero
  • ******
  • Posts: 3,322
  • Gender: Male
  • A light for our dream which is worth everything we could envision today and more tomorrow
    • live627 on Facebook
    • @live627 on Twitter
    • livemods
Re: Local time on the forum
« Reply #4 on: July 07, 2012, 07:14:39 PM »
For SMF 2.1 it would be really nice to let users select their timezone by name (hint, hint).[/i]

Track it.
Also, some people wouldn't have to update their time offset to contend witht he likes of daylight savings time.
See a list of my mods

I don't accept support PMs. Ever! Your query will be answered much quicker in the public boards. Why don't I want any PMs asking for support?

Offline Arantor

  • SMF Legend
  • *
  • Posts: 51,062
    • wedgebook on Facebook
Re: Local time on the forum
« Reply #5 on: July 07, 2012, 07:24:29 PM »
It's not the easiest thing to do in the world but it is certainly doable (hint, hint)

Offline bdtcomp

  • Semi-Newbie
  • *
  • Posts: 61
Re: Local time on the forum
« Reply #6 on: November 04, 2012, 11:04:40 AM »
You can tell it's Standard Time. And my wife and I have a forum we started, actually saved a weight loss business, by taking over the forum so the business would not lose some of it's more active members. We started our forum March 19, 2012 and I set up the server settings, being a bit of a geek, and my wife the socializer that has really kept this going as I couldn't have done it myself.

NOW here is the problem. GoDaddy hosts this forum as it is my hosting for my other URLs. And they are that funny place that doesn't change to Daylight time. So my wife and I live in Michigan which is eastern time. Our profile showed a 3 hour offset from the server time in Phoenix. Now it is only a 2 hour offset. My wife and I both chose the 'auto detect' setting to change the offset to 2 hours now. That works fine for posts today and forward, but the old posts are an hour earlier now.

I want to put up a notice about the time change as I know some members will just click the 'auto detect' while others will need to be instructed. BUT is there a way I can do this automatically on the Server, so that if left alone everyone's settings are automatically updated, depending on their local time? I don't see a modification for version for 2.0.2?

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 38,750
  • Gender: Male
  • Nothing (Or nothing you can see)
Re: Local time on the forum
« Reply #7 on: November 04, 2012, 01:17:40 PM »
I'd start a new topic, mate, if I were you. Possibly in the support board for the version of SMF that you're using, or the "Help wanted" one.

Offline bdtcomp

  • Semi-Newbie
  • *
  • Posts: 61
Re: Local time on the forum
« Reply #8 on: November 04, 2012, 01:47:26 PM »
Thanks K@. I may do that. I am going to try emulate and see if that works. Busy here, but I am hoping to keep the hours right. I have that OCD. I just discovered a camera given me, had the wrong date. So I have a couple months of pix, maybe that are a 'day late or a dollar short'.  :laugh:

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 38,750
  • Gender: Male
  • Nothing (Or nothing you can see)
Re: Local time on the forum
« Reply #9 on: November 04, 2012, 02:18:29 PM »
If you suffer from OCD, don't come and visit me, coz it'll drive you insane. ;)