I don't know much about CGI scripts but I am trying to learn enough to get by. I don't want to use php because a) I don't know much about it either, and b) I have already used lots of SSI's to bring in shared content navigation etc.
I have found two choices
<!--#echo var="DATE_LOCAL" --> <!--#echo var="DATE_GMT" --> The problem is I am in UK and the host is in a different European time zone.
Is there a way of making the time display what is local to me rather than the server? GMT's no good because for half the year it will be wrong.
We have only UK customers so if they see the time is an hour ahead and given as CEST instead of BST they will become confused.
<!--#include virtual="cgi-bin/date.cgi" -->
where date.cgi is a simple perl script:
#!/usr/bin/perl
$date = scalar localtime(time-3600);
print "Content-type: text/html\n\n";
print $date;
exit(0);
where -3600 is a one hour negative offset of the server time. You apply whatever value is appropriate.