PDA

View Full Version : Server date


Boofo
05-30-2002, 02:24 AM
Is there an easy way to get the actual server date so I could have something like this?

The time is now 4:15 pm an Wedenesday, May 29, 2002.

But I want it to be able to change according to the users's timezone too.

I have a javascript hack that will tell you if there are any important days on the date, like Washington's Birthday and Girl's Day in Japan and things like that. If I can get the date to change as the usertime changes, I can incorporate this too.

Brad
05-30-2002, 06:55 AM
i know of a few cgi scripts that will do this, i dont see y its needed under vB, i always used it under ubb due to lack of time offset

Boofo
05-30-2002, 06:58 AM
I want to be able to have the current date as well as the current time on the foumhome. If the time is offset for one user, I want the date to be able to be offset as well. :)

Brad
05-30-2002, 08:16 AM
dose it have to be php or will a cgi script do?

Boofo
05-30-2002, 08:27 AM
PHP would be better but whatever will work will do. If it can adjust the day according to the users's timeset, then it'll work. The one I was using (javascript) pulled the date fine until the time was offset to -6 (for example, then the day stayed the same at midnight instead of going back to the day before if the time was minus midnight. Does that make any sense? :)

Brad
05-30-2002, 08:41 AM
http://www.simplythebest.net/cgiscripts/
http://cgi.resourceindex.com/


i found it somewhere in thoese two sites, i would post php but my coding backround is in perl and i know little php resource sites

Boofo
05-30-2002, 08:53 AM
Will any of these CGI scripts integrate with vb with the offset or just show the server time? I can show the server time already. It just won't go along with the offset.

Brad
05-30-2002, 09:04 AM
well if a user sets his time right some scripts will pull the time off the users computer and disply that, its about what your looking for