Computing.Net > Forums > Web Development > SSI: #config timefmt not working

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

SSI: #config timefmt not working

Reply to Message Icon

Name: AndrewG1976
Date: May 16, 2006 at 21:31:44 Pacific
OS: SunOS 5.8
CPU/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



Sponsored Link
Ads by Google

Response Number 1
Name: James Greenwood (by jamesgreenwood)
Date: May 20, 2006 at 15:16:46 Pacific
Reply:

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?


0

Response Number 2
Name: AndrewG1976
Date: May 21, 2006 at 18:00:42 Pacific
Reply:

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?



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: SSI: #config timefmt not working

Java Script not working on web site www.computing.net/answers/webdevel/java-script-not-working-on-web-site/1693.html

Ctrl key not working in DW8 www.computing.net/answers/webdevel/ctrl-key-not-working-in-dw8/2213.html

Virtualhost not working. www.computing.net/answers/webdevel/virtualhost-not-working/1701.html