Ignore:
Timestamp:
2010-02-04T15:58:22+01:00 (15 years ago)
Author:
ramack
Message:

strange month issue fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/globalsat/src/org/kaintoch/gps/globalsat/dg100/GpsRec.java

    r19854 r19859  
    314314        int MM = (dg100Date - DD * 10000) / 100;
    315315        int YY = dg100Date - DD * 10000 - MM * 100;
    316         System.out.println("DD = " + new Integer(DD).toString());
    317316        dateTime = GregorianCalendar.getInstance();
    318         dateTime.set(2000 + YY, MM, DD, hh, mm, ss);
     317        dateTime.set(2000 + YY, MM - 1, DD, hh, mm, ss); // this is somehoe strange (MM - 1) seems correct now, but last year I did not notice wrong behaviour without the "- 1"
    319318    }
    320319
Note: See TracChangeset for help on using the changeset viewer.