Been using a great guestbook.cgi script for a while now...only thing I haven't figured out how to 'tweak' is this:
Time/date posted with the messages reflects, of course, the server's time - which is an hour ahead of my time zone.
Any way I can change it to subtract one hour?
$time = localtime($time);
Thanks in advance,
However, there is still a potential problem later on. That is if you ever moved to another server in another time zone then all your dates would once again be incorrect.
$time = localtime($time - 3600);
Perl also has a gmtime() function, which will return the same time no matter what zone you are in.
Thanks so much for your reply - will change the code and see how it works. Since this is my 'free' space from my ISP, it'll be used for quite awhile!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)