Salome HOME
Fix of wrong search results after logout.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / StampFacade.java
index 368f1daa20b3ea619c39c643f2f4f5496c169bd3..c0991dec924318c5d6c93c5e8b86738195e84a18 100644 (file)
@@ -7,6 +7,7 @@ package org.splat.simer;
  */
 
 import java.text.SimpleDateFormat;
+import java.util.Locale;
 import java.util.ResourceBundle;
 
 import org.splat.dal.bo.som.Timestamp;
@@ -24,13 +25,11 @@ public class StampFacade implements HistoryFacade {
        // Constructor
        // ==============================================================================================================================
 
-       public StampFacade(final Timestamp stamp) {
-               ResourceBundle labels = ResourceBundle.getBundle("labels",
-                               ApplicationSettings.getCurrentLocale());
-               ResourceBundle custom = ResourceBundle.getBundle("som",
-                               ApplicationSettings.getCurrentLocale());
+       public StampFacade(final Timestamp stamp, final Locale locale) {
+               ResourceBundle labels = ResourceBundle.getBundle("labels", locale);
+               ResourceBundle custom = ResourceBundle.getBundle("som", locale);
                SimpleDateFormat convert = new SimpleDateFormat(custom
-                               .getString("date.format")); // Date display format
+                               .getString("date.format"), locale); // Date display format
                ValidationStep type = stamp.getType();
 
                _nonicon = "image.hold.gif";