mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-71048 (test fixed one more time)
This commit is contained in:
@@ -29,9 +29,7 @@ import java.io.InputStreamReader;
|
||||
import java.text.DateFormat;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.List;
|
||||
import java.util.*;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
@@ -62,7 +60,8 @@ public class DateFormatUtilTest {
|
||||
assertEquals("17:10:15", printTimeForLocale("de_DE.UTF-8", Clock.getTime()));
|
||||
}
|
||||
else if (SystemInfo.isWinVistaOrNewer) {
|
||||
assertEquals(printWindowsTime(Clock.getTime()), DateFormatUtil.formatTimeWithSeconds(Clock.getTime()));
|
||||
long time = new Date().getTime();
|
||||
assertEquals(printWindowsTime(time), DateFormatUtil.formatTimeWithSeconds(time));
|
||||
}
|
||||
else {
|
||||
assertEquals(DateFormat.getTimeInstance(DateFormat.SHORT).format(Clock.getTime()),
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
var dt = new Date();
|
||||
dt.setTime(WSH.Arguments(0));
|
||||
var dt = new Date(parseInt(WSH.Arguments(0)));
|
||||
WSH.Echo(dt.toLocaleTimeString());
|
||||
|
||||
Reference in New Issue
Block a user