IBM Support

PM30514: Date modified is wrongly displayed when using API

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Using following code results in a wrongly displayed modified
    date in the console
    
    Code:
    -----------------
    public static void testDate(RAMAsset asset){
      RAMFolderArtifact folder = (RAMFolderArtifact)
    asset.getArtifactsRoot();
      Artifact[] children = folder.getChildren();
      for (int i = 0; i ? children.length; i++) {
        if (children[i] instanceof RAMArtifact) {
          RAMArtifact artifact = (RAMArtifact) children[i];
          String name = artifact.getName();
          String label = artifact.getLabel();
          Date date = new Date(artifact.getCreationDate());
          System.out.println('Name - '+name+'; Label - '+label+ ';
    Date - '+ new
    SimpleDateFormat('MMM dd,
    yyyy').format(date)+'/'+artifact.getCreationDate());
        }
      }
    }
    -----------------
    
    result in console:
    -----------------
    Name - 1088.doc; Label - Postanovlenia; Date - JAN 01, 1970/-1
    Name - GRANITZI_1088.doc; Label - Otchet; Date - JAN 01, 1970/-1
    
    
    The code should return the date of modified (which is displayed
    in RAM web interface see ?asset_in_ram.jpg?)
    For example, for the file named 1088.doc must return date Feb
    25, 2010
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Confirmed defect in 7.1.x and 7.5.x
    

Problem conclusion

  • Fixed in RAM  v7.5.0.2
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM30514

  • Reported component name

    RATL ASSET MGR

  • Reported component ID

    5724R4200

  • Reported release

    711

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-01-14

  • Closed date

    2011-05-19

  • Last modified date

    2011-05-19

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL ASSET MGR

  • Fixed component ID

    5724R4200

Applicable component levels

  • R711 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSUS84","label":"Rational Asset Manager"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
19 May 2011