Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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?

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?

![]() |
![]() |
![]() |

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