Peter J. Schoenster asked:
> >My boss would like the output of ssi commands to be in CST.  All I
> >could find was  the ability to change the format of the time, not the
> >timezone.

Michael A. Stone writes:
> i know this will work, because i've tested it on my own server:
>     <!--#exec cmd="TZ=US/Central ; export TZ ; date" -->
> 
> and you can use the same '%m/%d/%y %H:%M:%S' literal substitutions you'd
> find in a normal date string.

     Or you could just have the SSI exec a simple perl script that
does the adjustment for time zone...  I almost never do anything
beyond includes and exec'ing perl scripts in SSI.  
  
     Frankly, I've never really understood why people want to put the
time and date on their web pages (not to mention why they'd want to
track how many people have visited).
 
> theoretically, you should be able to do the same thing, without needing
> exec permissions, with the directives:
>     <!--#set var="TZ" value="US/Central" -->
>     <!--#config timefmt="[whatever]" -->
>     <!--#echo var="DATE_LOCAL" -->
> but it doesn't work.

     Well, yeah, the TZ won't carry over to the next SSI.  Makes sense.

     Depending on how much access you have to the server - i.e. if your
company owns & operates them - you might just set the TZ variable in the
Apache startup, so all of Apache's processes have the TZ variable set to
whatever timezone you want the pages to show up in.  But this might be a
bit more general than what you're thinking about.

Steven J. Owens
[EMAIL PROTECTED]
____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to