Changeset 31866


Ignore:
Timestamp:
2017-08-10T14:03:00+12:00 (7 years ago)
Author:
kjdon
Message:

handle properly 6 digit dates - only output month and year otherwise you get erroneous 01 day. Also handle the case where user has put 00 for the day - remove and pretend it was 6 digits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/XSLTUtil.java

    r30860 r31866  
    497497        {
    498498            in_pattern = "yyyyMM";
     499            out_pattern = "MMMM yyyy";
     500        }
     501        // remove the 00
     502        else if (date.length() == 8 && date.endsWith("00")) {
     503          date = date.substring(0,6);
     504          in_pattern = "yyyyMM";
     505          out_pattern = "MMMM yyyy";
    499506        }
    500507
Note: See TracChangeset for help on using the changeset viewer.