Menu

#3 Handle pre 1.5 time formats with -c

closed
5
2004-06-20
2004-06-07
No

public void setTimestampFormat(String
timestampFormat) {
if ( (timestampFormat != null) &&
timestampFormat.equalsIgnoreCase("null") ) // 20040512
bug 948070
this.timestampFormat = "yyyyMMddHHmmss";
else
this.timestampFormat = timestampFormat;
}

Discussion

  • Johann N. Löfflmann

    Logged In: YES
    user_id=184363

    Absolutely, the timeformat should be handled properly if
    tformat is set to "null".

    This feature request is an addition for bug# 948070 and it
    goes to jonelo.Jacksum.Jacksum.java:

    private final static String TIMESTAMPFORMAT_DEFAULT =
    "yyyyMMddHHmmss";
    ...

    if (props.getProperty("tformat").equals("null")) { // bug
    #948070
    System.err.println("Jacksum: Can't determine timeformat
    (tformat=null), trying default
    (tformat="+TIMESTAMPFORMAT_DEFAULT+")");
    checksum.setTimestampFormat(TIMESTAMPFORMAT_DEFAULT);
    } else {
    checksum.setTimestampFormat(props.getProperty("tformat"));
    ...

     
  • Johann N. Löfflmann

    • labels: --> Interface Improvements
    • assigned_to: nobody --> jonelo
    • summary: handle pre 1.5 time formats in -c --> Handle pre 1.5 time formats with -c
    • status: open --> closed
     
  • Johann N. Löfflmann

    Logged In: YES
    user_id=184363

    RFE has been implemented in Jacksum 1.5.0 as promised.

     

Log in to post a comment.