Update of /cvsroot/roller/roller/src/org/roller/presentation/velocity
In directory sc8-pr-cvs1:/tmp/cvs-serv20198/src/org/roller/presentation/velocity
Modified Files:
Tag: ROLLER_096_BRANCH
Macros.java
Log Message:
Couple of RSS feed caching fixes in 096 branch
Index: Macros.java
===================================================================
RCS file:
/cvsroot/roller/roller/src/org/roller/presentation/velocity/Macros.java,v
retrieving revision 1.41.2.1
retrieving revision 1.41.2.2
diff -C2 -d -r1.41.2.1 -r1.41.2.2
*** Macros.java 23 Nov 2002 16:15:32 -0000 1.41.2.1
--- Macros.java 27 Mar 2003 05:12:32 -0000 1.41.2.2
***************
*** 29,32 ****
--- 29,33 ----
import org.roller.presentation.weblog.tags.WeblogEntryMacros;
import org.roller.util.Utilities;
+ import org.roller.util.DateUtil;
import java.text.SimpleDateFormat;
***************
*** 96,120 ****
//------------------------------------------------------------------------
/**
! * Returns most recent update time of collection of weblog entries using
! * the specified pattern.
! * @param weblogEntries Collection of weblog entries.
! * @param Date format pattern, @see java.text.SimpleDateFormat.
! * @return Most recent update time formatted by pattern.
*/
! public String formatUpdateTime( ArrayList weblogEntries, String pattern )
{
! String date = null;
! Date updateTime = getUpdateTime(weblogEntries);
! Iterator iter = weblogEntries.iterator();
! try
! {
! SimpleDateFormat format = new SimpleDateFormat( pattern );
! date = format.format( updateTime );
! }
! catch (RuntimeException e)
! {
! date = "ERROR: formatting date";
! }
! return date;
}
--- 97,105 ----
//------------------------------------------------------------------------
/**
! * Format a date in ISO 8601 format.
*/
! public String formatIso8601Date( Date indate )
{
! return DateUtil.formatIso8601(indate);
}
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
|