SSI: #config timefmt not working
|
Original Message
|
Name: AndrewG1976
Date: May 16, 2006 at 21:31:44 Pacific
Subject: SSI: #config timefmt not workingOS: SunOS 5.8CPU/Ram: 440Mhz/512MB |
Comment: Apache Server version: Apache/2.0.55 Following on from an old post - http://www.computing.net/webdevel/wwwboard/forum/2549.html - I have found that "#config timefmt" is ignored on the index page when I reference my website as http://mywebsite/. My index page is currently set to index.html. However, if I load the page directly - http://mywebsite/index.html - the timefmt is used. Is this a known issue or have I configured Apache wrong? Thanks, Andrew
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: James Greenwood (by jamesgreenwood)
Date: May 20, 2006 at 15:16:46 Pacific
Subject: SSI: #config timefmt not working |
Reply: (edit)I'm not sure what you're trying to accomplish exactly. Have you tried putting something like... ...and then making a file called "header.html" with something in it?
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: AndrewG1976
Date: May 21, 2006 at 18:00:42 Pacific
Subject: SSI: #config timefmt not working |
Reply: (edit)I don't think you're post came through properly .. I'm trying to get the current date to display on my homepage and I'm trying to format it using: [open angle bracket]!--#config timefmt="%d-%b-%Y" --[close angle bracket] [open angle bracket]<!--#echo var="DATE_LOCAL" --[close angle bracket] I'm finding that the date is being displayed but it is not being formatted, so it looks like the "#config timefmt" parameter is being ignored. This is only happening on the home page and any other directory index pages. My Apache directory index page is set to "index.html". So If I load http://mywebsite/ it loads the index.html by default, where the date is loaded but not in the format I desire. However, if I specify the full url http://mywebsite/index.html, the date is loaded with the correct formatting. So I'm wondering if this is an Apache issue or not?
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: