SSI -- config timefmt and "DATE_LOCAL"

J

John Burton

Can someone help a newbie?

Running Apache v2.0.49 on a Fedora 3 system. SSI works, as I can
successfully display date/time with

<!--#echo var='DATE_LOCAL' -->

in my .shtml file. HOWEVER.. I'd like the display to reflect

Monday April 18, 2005

According to my research, I should have a line

<!--#config timefmt='%A %B %d, %Y' -->

Immediatly prior to my "#echo var" line.

So in my .shtml file I should have

<td width="100%">
<p align="right"><font color="#FFFF00">
<!--#config timefmt='%A %B %d, %Y' -->
<!--#echo var='DATE_LOCAL' --></td>

Welp, all I get is the full-up "Date Local" dump vice the modified version I
*thought* I was writing with "#config timefmt"

What am I doing wrong?

Thanks!

--
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

john burton
Bach 50B3
Bass Trombone, Charleston NeoPhonic Orchestra
South Charleston, West Virginia
 
J

Jukka K. Korpela

John Burton said:
Can someone help a newbie?

It depends. Maybe you should ask in a server-specific group. (There is
no such thing as "server-side HTML", and I have no idea what group
alt.html.server-side is, but there _are_ groups devoted to server-side
issues.)
So in my .shtml file I should have

<td width="100%">
<p align="right"><font color="#FFFF00">
<!--#config timefmt='%A %B %d, %Y' -->
<!--#echo var='DATE_LOCAL' --></td>

No, that's invalid markup - the end tag </font> is missing. Besides,
<font> tags are almost always a symptom of bad design, and a table cell
that consumes all the available width is odd, too. But these may have
nothing to do with the problem at hand. Testing your code, I see
Tuesday April 19, 2005
so where is the problem?
Welp, all I get is the full-up "Date Local" dump vice the modified
version I *thought* I was writing with "#config timefmt"

You are not describing clearly what happens. A URL would be necessary,
though not sufficient; we would at least see the real _effect_.
 
B

Beauregard T. Shagnasty

Jukka said:
and I have no idea what group alt.html.server-side is,

You're posting in it... <g> (cross-posting, of course) and I'm
answering there.
 
J

John Burton

I guess it's just how my Apache implements the mod_ssi stuff.

I was trying to cut down on code shipped by leaving out the javascript code
that, in effect tells the client browser to check its watch and display the
time...

O well.. On we go..

Thank you..



--
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

john burton
Bach 50B3
Bass Trombone, Charleston NeoPhonic Orchestra
South Charleston, West Virginia
 
J

Jukka K. Korpela

John Burton said:
I guess it's just how my Apache implements the mod_ssi stuff.

Which "it"? Please learn to quote properly. See
http://www.xs4all.nl/~wijnands/nnq/nquote.html

Are you taking everyone's time just to tell that you are not willing to
answer any questions that were asked to make it possible to help you?

(Besides, it most probably isn't.)
I was trying to cut down on code shipped by leaving out the
javascript code that, in effect tells the client browser to check
its watch and display the time...

Oh, you wanted to add some cryptic nonsense as well. Making the browser
display the time by its watch, if it is possible, and making the server
send its time are completely different things. They differ by an
unknown amount of time between 0 and 24 hours.

We still have no clue of what you are doing, and, I'm afraid, neither
have you.
 
T

Toby Inkster

John said:
I was trying to cut down on code shipped by leaving out the javascript code
that, in effect tells the client browser to check its watch and display the
time...

From where I am sitting, I can see a clock on my stereo, my VCR, my
computer screen, my mobile phone and my watch. Why do you imagine I want
to see the time on your web page as well?
 
S

Sid Ismail

On Wed, 20 Apr 2005 07:43:33 +0100, Toby Inkster

: John Burton wrote:
:
: > I was trying to cut down on code shipped by leaving out the javascript code
: > that, in effect tells the client browser to check its watch and display the
: > time...
:
: From where I am sitting, I can see a clock on my stereo, my VCR, my
: computer screen, my mobile phone and my watch. Why do you imagine I want
: to see the time on your web page as well?


To synchronise the others... :)

My Mom-in-Law had 3 pairs of spectacles... one for the morning and one
for the night. The third was to look for the other two!

Sid
 
J

John Burton

Since I've stumbled into "it" I'll 'splain (an old adage from the Ricky/Lucy
days)...

"It" in this case, refers to the results of applying logically written
documentation on Apache (as carefully and fully explained in the original
post) to a locally written .html document, and not getting the results
expected. After re-reading the FAQ's (such as they are) and searching
newsgroups for answers, I threw myself at you's guys mercy.

"It" would appear that for whatever reason either 1) my mod_ssi is not
properly interpreting the <!--#config timefmt--> command, leaving "it"
(apache) to display "DATE_LOCAL" as if there were no modifier present, or 2)
I've wrapped with the shiny side of the tin foil *in* thereby making the
commands non-coherent.

Whatever the case may be... I wanted to display time *according to the
server*, rather than *according to the client*. Seems like that's a valid
wanna, even if it may seem weird on the surface. Perhaps my displaying the
time would make it easier for you Fins to know what time it is in Charleston
without having to count backwards. Besides, you gotta agree that it does
call for shipping fewer bits of code across the line..

No matter. I've come up with a different way of displaying the information
I needed to display, so I'll let you continue on.

I'm sorry for the disruption.

BTW... Remember in THIS part of the world we display DD-MM-YY, not
CCYY-MM-DD.

It's all in how you look at it...

--
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

john burton
Bach 50B3
Bass Trombone, Charleston NeoPhonic Orchestra
South Charleston, West Virginia
 
T

Toby Inkster

John said:
BTW... Remember in THIS part of the world we display DD-MM-YY, not
CCYY-MM-DD. [...]
South Charleston, West Virginia

I thought in THAT part of the world you used that strange MM-DD-YY format?
 
J

John Burton

<chuckle>

We go both ways...


Toby Inkster said:
John said:
BTW... Remember in THIS part of the world we display DD-MM-YY, not
CCYY-MM-DD. [...]
South Charleston, West Virginia

I thought in THAT part of the world you used that strange MM-DD-YY format?

--
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

john burton
Bach 50B3
Bass Trombone, Charleston NeoPhonic Orchestra
South Charleston, West Virginia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,158
Latest member
Vinay_Kumar Nevatia
Top