Forum Moderators: phranque
<!--#config timefmt="%Y" -->
Copyright <!--#echo var="DATE_LOCAL" -->
I've discovered that this doesn't work (the timefmt config is ignored) when the file is executable, but we need them to be executable as we're currently using XBitHack under Apache 2.
Correct (file not executable): Copyright 2008
Incorrect (file executable): Copyright Wednesday, 13-Feb-2008 10:25:15 PST
Can anyone confirm and/or suggest a work around?
Thanks,
Chris
What are the file extensions of the pages where you're using this code?
A work-around might be to set the time format in the including file. That setting should persist when the included file is parsed. This behaviour is usually a bother, but it might be useful in your situation.
Jim
The file extension is .inc, and is intended to be used as a footer include file, thus being included by .html and .php pages.
However, I'm experiencing the problem when loading the file directly.
I tried the same code on another server, and it is working, so it must be a configuration issue.