jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jalka...@apache.org
Subject svn commit: r649967 - /incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java
Date Sun, 20 Apr 2008 20:10:42 GMT
Author: jalkanen
Date: Sun Apr 20 13:10:39 2008
New Revision: 649967

URL: http://svn.apache.org/viewvc?rev=649967&view=rev
Log:
JSPWIKI-243 - now uses the proper routines instead of hard-coded defaults.

Modified:
    incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java

Modified: incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java?rev=649967&r1=649966&r2=649967&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java (original)
+++ incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java Sun Apr 20 13:10:39
2008
@@ -41,6 +41,8 @@
 import com.ecyrd.jspwiki.auth.AuthorizationManager;
 import com.ecyrd.jspwiki.auth.permissions.PagePermission;
 import com.ecyrd.jspwiki.parser.PluginContent;
+import com.ecyrd.jspwiki.preferences.Preferences;
+import com.ecyrd.jspwiki.preferences.Preferences.TimeFormat;
 import com.ecyrd.jspwiki.providers.ProviderException;
 
 /**
@@ -76,8 +78,6 @@
     implements WikiPlugin, ParserStagePlugin
 {
     private static Logger     log = Logger.getLogger(WeblogPlugin.class);
-    private static final DateFormat DEFAULT_ENTRYFORMAT
-                                = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.SHORT);
     private static final Pattern headingPattern;
 
     /** How many days are considered by default.  Default value is {@value} */
@@ -149,7 +149,7 @@
 
         if( ( params.get(PARAM_ENTRYFORMAT)) == null )
         {
-            entryFormat = DEFAULT_ENTRYFORMAT;
+            entryFormat = Preferences.getDateFormat( context, TimeFormat.DATETIME );
         }
         else
         {



Mime
View raw message