Issue #125
Change-Id: I677be3fa551206e6c8b024a1aef45edb2c4e18ba Former-commit-id: 6ddb1bb4204a1b405976720c9f48fc20ff84e7c4
This commit is contained in:
parent
8d0bae66e2
commit
68ff510bc8
1 changed files with 6 additions and 13 deletions
|
@ -82,6 +82,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
* elements matches the selection of default limits
|
||||
* Apr 19, 2013 1790 rferrel Make dialog non-blocking.
|
||||
* Nov 26, 2013 15800 wkwock Fix unhandled event loop
|
||||
* Jan 07, 2013 16643 snaples Fixed changeFormat to use string formatting instead of converting to Date.
|
||||
* </pre>
|
||||
*
|
||||
* @author lvenable
|
||||
|
@ -1286,21 +1287,13 @@ public class QcAlertAlarmLimitsDlg extends CaveSWTDialog {
|
|||
private String changeFormat(String initDateFormat, SimpleDateFormat dateF1,
|
||||
SimpleDateFormat dateF2) {
|
||||
String finalDateFormat = null;
|
||||
Date dd1 = null;
|
||||
|
||||
if ((initDateFormat != null) && !(initDateFormat.equals(""))) {
|
||||
try {
|
||||
dateF1.setLenient(false);
|
||||
dateF2.setLenient(false);
|
||||
|
||||
dd1 = dateF1.parse(initDateFormat);
|
||||
|
||||
} catch (ParseException e) {
|
||||
statusHandler.handle(Priority.PROBLEM, "Error parsing data. ",
|
||||
e);
|
||||
}
|
||||
|
||||
finalDateFormat = dateF2.format(dd1);
|
||||
String dateformat1 = dateF1.toPattern();
|
||||
String dateformat2 = dateF2.toPattern();
|
||||
char ch1 = dateformat1.charAt(2);
|
||||
char ch2 = dateformat2.charAt(2);
|
||||
finalDateFormat = initDateFormat.replace(ch1, ch2);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue