Ignore:
Timestamp:
2014-07-09T22:15:41+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10121 - Add a new look-and-feel preference to display ISO 8601 dates globally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java

    r7187 r7299  
    10651065
    10661066        public String getStandardTooltipText() {
     1067            Date date = new Date();
    10671068            return  tr(
    10681069                    "Please enter a date in the usual format for your locale.<br>"
     
    10711072                    + "Example: {2}<br>"
    10721073                    + "Example: {3}<br>",
    1073                     DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).format(new Date()),
    1074                     DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault()).format(new Date()),
    1075                     DateFormat.getDateInstance(DateFormat.LONG, Locale.getDefault()).format(new Date()),
    1076                     DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault()).format(new Date())
     1074                    DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).format(date),
     1075                    DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault()).format(date),
     1076                    DateFormat.getDateInstance(DateFormat.LONG, Locale.getDefault()).format(date),
     1077                    DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault()).format(date)
    10771078            );
    10781079        }
     
    11291130
    11301131        public String getStandardTooltipText() {
     1132            Date date = new Date();
    11311133            return tr(
    11321134                    "Please enter a valid time in the usual format for your locale.<br>"
     
    11351137                    + "Example: {2}<br>"
    11361138                    + "Example: {3}<br>",
    1137                     DateFormat.getTimeInstance(DateFormat.SHORT, Locale.getDefault()).format(new Date()),
    1138                     DateFormat.getTimeInstance(DateFormat.MEDIUM, Locale.getDefault()).format(new Date()),
    1139                     DateFormat.getTimeInstance(DateFormat.LONG, Locale.getDefault()).format(new Date()),
    1140                     DateFormat.getTimeInstance(DateFormat.FULL, Locale.getDefault()).format(new Date())
     1139                    DateFormat.getTimeInstance(DateFormat.SHORT, Locale.getDefault()).format(date),
     1140                    DateFormat.getTimeInstance(DateFormat.MEDIUM, Locale.getDefault()).format(date),
     1141                    DateFormat.getTimeInstance(DateFormat.LONG, Locale.getDefault()).format(date),
     1142                    DateFormat.getTimeInstance(DateFormat.FULL, Locale.getDefault()).format(date)
    11411143            );
    11421144        }
Note: See TracChangeset for help on using the changeset viewer.