We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c77c77 commit 447c496Copy full SHA for 447c496
1 file changed
test/src/org/labkey/test/tests/targetedms/InstrumentSchedulingTest.java
@@ -134,13 +134,8 @@ public void testSchedule()
134
clickAndWait(Locator.linkWithText(PROJECT_1));
135
waitAndClickAndWait(Locator.linkWithText("Schedule instrument time"));
136
137
- String yearMonth = Calendar.getInstance().get(Calendar.YEAR) + "-";
138
int month = (Calendar.getInstance().get(Calendar.MONTH) + 1);
139
- if (month < 10)
140
- {
141
- yearMonth += yearMonth;
142
- }
143
- yearMonth += month;
+ String yearMonth = Calendar.getInstance().get(Calendar.YEAR) + "-" + (month < 10 ? "0" + month : "" + month);
144
145
scheduleInstrument(yearMonth + "-02");
146
scheduleInstrument(yearMonth + "-03");
0 commit comments