** How can I allow a user to click on a choice of viewing times in either Eastern or Central time zone. **
The only way I can see to do it would be to modify the sub populateTemplateVariables routine of calendar.pl to first check for a passed variable before setting the script time.
Right now that routing has:
sub populateTemplateVariables {
$localtime_offset = 3600*$Config->get("time_zone_offset");
($now_ss,$now_mi,$now_hh,$now_dd,$now_mm,$now_yy,$now_wd,$now_yd,$now_dst)
= localtime(time+$localtime_offset);
You would have to do something like:
sub populateTemplateVariables {
if ( Passed_Variable )
{
$localtime_offset = 3600 * Passed_Variable ;
}
else
{
$localtime_offset = 3600*$Config->get("time_zone_offset");
}
Keep in mind that the above is only pseudo code and not actual working code.
Dan O.
[This message has been edited by DanO (edited February 08, 2003).]