Anil Gangolli wrote:
If this works for you let us know; it means the JSP is not getting the
locale set properly and that would be a bug. I'm not sure if it is in
current versions or not.
Starting with 3.x the frontpage is a weblog and doesn't pass through any
jsps anymore, so this shouldn't be a bug in the current 3.x code.
-- Allen
--a.
----- Original Message ----- From: "Emily Lynema" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, January 10, 2007 2:16 PM
Subject: Using jstl <fmt:formatDate> tag
I'm trying to reformat the post date/times that appear on our roller
main page.
I'm still on roller 2.1, so I apologize for being a bit behind. We are
running in Apache Tomcat 5.5.17 with Java 1.5.
Here's the original code in the main.jsp for each 'recent post':
<fmt:formatDate value="${post.pubTime}" type="both" dateStyle="medium"
timeStyle="medium" />
which produces a display like this:
2007-01-05 10:06:54.0
I would like it to display something more like 'January 5, 2007'
without the timestamp. But no matter how I fiddle with the
<fmt:formatDate /> options, I can't get anything to change.
For example, this code:
<fmt:formatDate value="${post.pubTime}" type="date" dateStyle="full" />
continues to produce:
2007-01-05 10:06:54.0
The formatDate tag, as far as I can find, seems to be expecting a
java.util.Date, and the WeblogEntryData.pubTime seems to be a
java.sql.Timestamp, so I'm wondering if there are incompatabilities
there. Any advice would be appreciated!
-emily
--
Emily Lynema
Systems Librarian for Digital Projects
Information Technology, NCSU Libraries
919-513-8031
[EMAIL PROTECTED]