Test fix
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Mon, 27 Oct 2014 18:30:23 +0000 (19:30 +0100)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Mon, 27 Oct 2014 18:30:23 +0000 (19:30 +0100)
platform/util/testSrc/com/intellij/util/text/DateFormatUtilTest.java

index 5a0da0e80f8b1fc9cbce90159a3427ce51ab5404..01046586dc5d615eb287662e302f15fbeba283a1 100644 (file)
@@ -49,7 +49,7 @@ public class DateFormatUtilTest {
 
   @Test
   public void testTime() throws Exception {
-    Clock.setTime(2004, Calendar.DECEMBER, 10, 17, 10, 15);
+    Clock.setTime(1980, Calendar.DECEMBER, 10, 17, 10, 15);
 
     if (SystemInfo.isMac) {
       assertEquals("17:10", DateFormatUtil.formatTime(Clock.getTime()));
@@ -60,7 +60,7 @@ public class DateFormatUtilTest {
       assertEquals("17:10:15", printTimeForLocale("de_DE.UTF-8", Clock.getTime()));
     }
     else if (SystemInfo.isWinVistaOrNewer) {
-      long time = new Date().getTime();
+      long time = Clock.getTime();
       assertEquals(printWindowsTime(time), DateFormatUtil.formatTimeWithSeconds(time));
     }
     else {