logo       

roller/src/org/roller/presentation/velocity Macros.java,1.41.2.1,1.41.2.2: msg#00202

Subject: roller/src/org/roller/presentation/velocity Macros.java,1.41.2.1,1.41.2.2
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe