Ignore:
Timestamp:
12/07/17 16:51:30 (7 years ago)
Author:
pharms
Message:
  • solved some findbugs issues
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-genericevents/src/main/java/de/ugoe/cs/autoquest/plugin/genericevents/GenericEventLogParser.java

    r2165 r2231  
    155155        // year 1 of the gregorian calendar. If this is the case, the date is still in the future. 
    156156        // Hence, we substract the milliseconds between year 1 of the gregorian calendar and 1970. 
    157         // (We took these magic number, as they provide correct results. It's not fully clear, 
    158         //  why the January 1st 1970 does not work correctly but provides an offset of two days) 
    159157        if (val > System.currentTimeMillis()) { 
    160             Duration duration = Duration.between(new GregorianCalendar(1, 1, 1).toInstant(), 
    161                                                  new GregorianCalendar(1969, 12, 30).toInstant()); 
     158            Duration duration = Duration.between(new GregorianCalendar(1, 0, 1).toInstant(), 
     159                                                 new GregorianCalendar(1970, 0, 1).toInstant()); 
    162160             
    163161            val -= duration.toMillis(); 
Note: See TracChangeset for help on using the changeset viewer.