Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Timezone MOD
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 4

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 03 April 2005 :  07:48:05  Show Profile  Visit MarkJH's Homepage  Reply with Quote
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

Posted - 03 April 2005 :  10:38:14  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
It has been done, since that was available for the beta of the upcoming version of Snitz. DOn't know whether it is available as an independent mod, though.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 03 April 2005 :  12:35:47  Show Profile  Reply with Quote
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


Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 03 April 2005 :  13:20:12  Show Profile  Visit MarkJH's Homepage  Reply with Quote
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/
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 03 April 2005 :  16:53:46  Show Profile  Reply with Quote
In Image's forum there is a timezone feature, so the mod for that must be floating around somewhere.<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 03 April 2005 :  17:15:46  Show Profile  Visit HuwR's Homepage  Reply with 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.<
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 03 April 2005 :  18:54:56  Show Profile  Reply with Quote
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


Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 03 April 2005 :  19:16:23  Show Profile  Visit MarkJH's Homepage  Reply with Quote
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/
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 04 April 2005 :  11:26:28  Show Profile  Reply with Quote
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\-_
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 04 April 2005 :  14:39:42  Show Profile  Visit MarkJH's Homepage  Reply with Quote
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/
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 04 April 2005 :  17:39:19  Show Profile  Reply with Quote
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.<
Go to Top of Page

withanhdammit
Junior Member

USA
236 Posts

Posted - 04 April 2005 :  23:07:00  Show Profile  Visit withanhdammit's Homepage  Send withanhdammit an ICQ Message  Reply with Quote
I'd also be interested in a timezone mod like this!

h<

I reject your reality and substitute my own.
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 05 April 2005 :  02:02:06  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message  Reply with Quote
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

Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 05 April 2005 :  08:00:56  Show Profile  Reply with Quote
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\-_
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 06 April 2005 :  10:54:22  Show Profile  Reply with Quote
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\-_
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 06 April 2005 :  12:25:44  Show Profile  Visit MarkJH's Homepage  Reply with Quote
Great stuff! I'll give this a try at the weekend and let you know how I got on. <

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07