Ignore:
Timestamp:
2017-03-04T21:16:29+01:00 (7 years ago)
Author:
stoecker
Message:

fix ELI compare script date handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r11666 r11667  
    320320                cal.set(reg[0][2] as Integer, reg[0][4] == null ? 0 : (reg[0][4] as Integer)-1, reg[0][6] == null ? 1 : reg[0][6] as Integer)
    321321                cal.add(Calendar.DAY_OF_MONTH, -1)
    322                 ed2 = cal.get(Calendar.YEAR)
     322                ed2 = reg[0][1] + cal.get(Calendar.YEAR)
    323323                if (reg[0][4] != null)
    324324                    ed2 += "-" + String.format("%02d", cal.get(Calendar.MONTH)+1)
Note: See TracChangeset for help on using the changeset viewer.