portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shins...@apache.org
Subject svn commit: r439317 - /portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp
Date Fri, 01 Sep 2006 13:42:21 GMT
Author: shinsuke
Date: Fri Sep  1 06:42:21 2006
New Revision: 439317

URL: http://svn.apache.org/viewvc?rev=439317&view=rev
Log:
i18ned date format

Modified:
    portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp?rev=439317&r1=439316&r2=439317&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp (original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp Fri
Sep  1 06:42:21 2006
@@ -1 +1,8 @@
-<%= new java.util.Date() %>
\ No newline at end of file
+<%
+    java.util.Locale locale = request.getLocale();
+    if ( locale == null )
+    {
+        locale = java.util.Locale.ENGLISH;
+    }
+%>
+<%= java.text.DateFormat.getDateTimeInstance(java.text.DateFormat.MEDIUM, java.text.DateFormat.MEDIUM,
locale).format(new java.util.Date()) %>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message