Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time Zone adjust with last_modified call

Status
Not open for further replies.

Daffydd

Technical User
Mar 28, 2003
6
US
Hi!
I'm not an Apche pro like most of you are, rather a webmaster seeking a solution. :^)

The boss wants our homepage to include a "updated at" over our headlines to show that we are current.
Okay - I did some research and found the
echo command <!--#echo var=&quot;last_modified&quot;-->
That worked well as our webhost is running Apache.
I also fond this:
<!--#config timefmt=&quot;%I:%M%p&quot;--> to help with the formating of the time and date.

All was well in the world! LOL

Except that our webhost's servers sit on the East Coast and we are in the Central Time Zone.
So the time displayed is EST.
Is there a way, hack, command that will adjust the time back one hour? Some sort of -1 I can add to the config to reflect the correct time zone?
I hope so!
Or does anyone know of a Perl script or something that will display the last modified time with the ability to adjust the zone?
Thanks for any help or advice!
Daf
 
Thanks anyway- apparently not possible with just SSI. I found a Perl script to do the trick.

Thanks
Daf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top