Author |
Topic |
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 03 April 2005 : 07:48:05
|
Every other forum software I know has a section in the user's profile where they can change the time displayed to match their timezone. Now, isn't it about time that we had something like this for Snitz?
It would be just a dropdown box in the profile that gave a -12/+12 from GMT (or whatever) and when the clocks went back or forth it would be completely down to the user to adjust the time in their profile.
That's all it needs. No complicated equations to calculate daylight savings etc.
Please tell me if I'm over-simplifying things. < |
Bandlink.net - http://www.bandlink.net/ Bandlink Music Forums - http://www.bandlink.net/forum/ |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
-gary
Development Team Member
406 Posts |
Posted - 03 April 2005 : 12:35:47
|
I posted a simple solution a while back, but evertime I try and search the archives it times out so I can't give you a link. It wasn't a mod though since the collecting and storing of the users zone was up to you. I only gave the code for adjusting the displayed time which is trivial.< |
KawiForums.com
|
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 03 April 2005 : 13:20:12
|
quote: DOn't know whether it is available as an independent mod, though.
I haven't seen it. The only thing I've found is what Bozden was working on for version 4. That was two years ago.
Gary, I'd love to see your code... if it can be found! I don't think it would be too difficult to work with that and a dropdown in the profile to make a working MOD.< |
Bandlink.net - http://www.bandlink.net/ Bandlink Music Forums - http://www.bandlink.net/forum/ |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 03 April 2005 : 16:53:46
|
In Image's forum there is a timezone feature, so the mod for that must be floating around somewhere.< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 03 April 2005 : 17:15:46
|
The code was written by me, but was never released as a MOD, mainly because it involved a lot of core code changes and was a bit quirky on some servers.< |
|
|
-gary
Development Team Member
406 Posts |
Posted - 03 April 2005 : 18:54:56
|
Store the users time zone in the strM_TIMEZONE variable. Set the "Time Adjustment" setting in the admin panel to the inverse of your time zone to bring the server to GMT. Add the code below to the chkDate function in inc_func_common.asp.
The hardest part is modifying the profile pages to store the users time zone.
if fDate <> "" and strM_TIMEZONE <> "" Then fDate = DateToStr(DateAdd("h", strM_TIMEZONE, strToDate(fDate))) End if< |
KawiForums.com
|
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 03 April 2005 : 19:16:23
|
quote: The code was written by me, but was never released as a MOD, mainly because it involved a lot of core code changes and was a bit quirky on some servers.
But wasn't your code a lot more complicated than that? Didn't it take into account daylight saving adjustments around the world? I'm just looking for something that leaves all of that down to the user. If the clocks go forward or back, they make the adjustment.
Thanks for supplying the code, Gary. Would somebody have a way of incorporating that into the user profile?< |
Bandlink.net - http://www.bandlink.net/ Bandlink Music Forums - http://www.bandlink.net/forum/ |
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 04 April 2005 : 11:26:28
|
Mark, after seeing the earlier thread on this, I Used Garys suggestions and got this working. I used Invision Board(log-in - demo, demo) as a model, in fact the select box I use is Invision Boards .
As Gary said the server/forum time is set to GMT (I did play around with this and found it to be best). Then members adjust time in thier profile, there is an adjustment for DST.
I never released it as a mod because I wasn't to sure of it. But it has passed all my testing so far. If your interested in testing it I will get the code together. < |
_-/Cripto9t\-_ |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 04 April 2005 : 14:39:42
|
Looks good, Cripto.
My only concern with this MOD is the DST bit. My server is based in the US. The clocks went forward one week earlier in the UK than in the US. Wouldn't this cause problems?< |
Bandlink.net - http://www.bandlink.net/ Bandlink Music Forums - http://www.bandlink.net/forum/ |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 04 April 2005 : 17:39:19
|
Yep, Aussie DST works a few weeks diff to USA DST, NZ DST changes are different again, then some timezones do not have DST at all ..... just remind the users to do the old +/- 1 when they need to.< |
|
|
withanhdammit
Junior Member
USA
236 Posts |
Posted - 04 April 2005 : 23:07:00
|
I'd also be interested in a timezone mod like this!
h< |
I reject your reality and substitute my own. |
|
|
sr_erick
Senior Member
USA
1318 Posts |
Posted - 05 April 2005 : 02:02:06
|
Hmm, I just tossed together some code a few months ago so users could adjust the time. Like everyone else, not an official mod but it did the trick for me. I have to add the daylight savings time checkbox though, which is the only thing I am missing.< |
Erick Snowmobile Fanatics
|
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 05 April 2005 : 08:00:56
|
quote: Originally posted by MarkJH
My only concern with this MOD is the DST bit. My server is based in the US. The clocks went forward one week earlier in the UK than in the US. Wouldn't this cause problems?
Yea DST just started here and I started thinking of all the scenarios that Laser pointed out. There are 3 places in the US, that I know of, that don't have DST. The other forums I see use the DST checkbox as an adjustment. If your times an hour off, check/uncheck the box. quote: ..... just remind the users to do the old +/- 1 when they need to.
Thats what I'd do. Like the message says, it's up to you to keep your profile up to date .
sr_erick, I'd be interested in seeing what you've done.
I'll try to get this together today.< |
_-/Cripto9t\-_ |
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 06 April 2005 : 10:54:22
|
I think I got it all right click and save. I put a small readme in the zip. Word of caution, if you try this, all previous posts will be off up to +/- 12 hrs. Depending on the difference in the new and old settings. Also, if you remove it, the same thing applies to posts made while this was in use.
If your forum is already set to GMT there shouldn't be no problem .
Like I've said, I haven't really been able to test this good so you should be willing to take a risk . I think the worst it could do is screw up a few post times if you don't like it.< |
_-/Cripto9t\-_ |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
Topic |
|