PDA

View Full Version : Autodetecting timezone


N!ck
03-23-2003, 04:48 AM
Many of my users are too lazy (or ignorant) to set their timezone. I was playing with HiveMail's demo, and I saw that it detects any difference in timezone between the server and user and checks to make sure the offset is correct. If it isn't, it asks if they want to update it and automatically adjusts it accordingly. Here's the JS I grabbed off HiveMail:


<Part of Hivemail code removed until permission from Chen obtained>


Now...I'm sure you knew where I was going with this. It would be AWESOME if vBulletin could detect this the same way! I'm just not quite sophisticated enough to do it myself. Is anyone up to the challenge?

Boofo
03-23-2003, 05:15 AM
Isn't this considered copyrighted software? ;)

Erwin
03-23-2003, 11:16 AM
Actually, since it is code from another program that is copyright posted without permission, it breaks one of our rules:

This is the rule... :)

I will remove the code for now, until you get permission from Chen to post it.

Javascript is not "just Javascript". Any piece of code, in any language, is copyright and owned by the author, unless it is specifically stated that it is public domain.

vB code is different if posted with regards to hacking. Hivemail, however, is not up for hacking as far as I know. I really think that to be fair to Chen, you need to ask his permission first before posting the code.

In any case, this is a cool idea, and something I am willing to look into. :) It would not be hard to do this with vB at all. As long as we have permission from Chen.

N!ck
03-23-2003, 03:27 PM
Please accept my apology then.