Changeset 2196


Ignore:
Timestamp:
2001-03-20T08:56:20+12:00 (23 years ago)
Author:
say1
Message:

fixed a pair of date bugs for Dave. classification updates

Location:
trunk/java-client/org/nzdl/gsdl
Files:
1 added
3 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/SimpleClient.java

    r2179 r2196  
    173173      System.out.println("\t" + "Public: " + collectionInfo.isPublic());
    174174      System.out.println("\t" + "Beta: " + collectionInfo.isBeta());
    175       int buildDate = collectionInfo.getBuildDate();
     175      long buildDate = collectionInfo.getBuildDate();
    176176      //process buildDate into something sensible
    177177      System.out.println("\t" + "Build Date: " + buildDate);
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/CollectionInfoDialog.java

    r2195 r2196  
    7575    contentPanel.add(new JLabel((collectionInfo.getNumOfBytes() / 1024) + "K"));
    7676    contentPanel.add(new JLabel("Last built on:"));
    77     Date buildDate = new Date( collectionInfo.getBuildDate());
     77    Date buildDate = new Date( collectionInfo.getBuildDate()*1000);
    7878    contentPanel.add(new JLabel(DateFormat.getDateTimeInstance().format(buildDate)));
    7979    Date now = new Date();
    8080    Date now2 = new Date(now.getTime());
    81     System.err.println("Build date =\t " + collectionInfo.getBuildDate() + "\nNow is = \t" +  now.getTime());
     81    System.err.println("Build date =\t " + collectionInfo.getBuildDate()*1000 + "\nNow is = \t" +  now.getTime());
    8282    contentPanel.add(new JLabel("Today is:"));
    8383    contentPanel.add( new JLabel(DateFormat.getDateTimeInstance().format(now2)));
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Makefile

    r2188 r2196  
    77  SearchPanel.class\
    88  SimpleGraphicalClient.class\
     9  CollectionInfoDialog.class\
    910
    1011all : $(CLASSES)
  • trunk/java-client/org/nzdl/gsdl/service/NzdlCollectionInfo.java

    r2186 r2196  
    128128   * @return Integer representation of date.
    129129   */
    130   public int getBuildDate() {
     130  public long getBuildDate() {
    131131    return m_Info.buildDate;
    132132  }
Note: See TracChangeset for help on using the changeset viewer.