Project

General

Profile

« Previous | Next » 

Revision 1758

Added by Jing Tao over 21 years ago

Change the year from YY to YYYY

View differences:

src/edu/ucsb/nceas/metacat/MetacatReplication.java
305 305
        pstmt = dbConn.prepareStatement("INSERT INTO xml_replication " +
306 306
                  "(server, last_checked, replicate, datareplicate, hub) " +
307 307
                                      "VALUES ('" + server + "', "+ 
308
                                      dbAdapter.toDate("01/01/80", "MM/DD/YY") 
308
                                      dbAdapter.toDate("01/01/1980", "MM/DD/YYYY") 
309 309
                                      + ", '" +
310 310
                                      replicate +"', '" +dataReplicate+"', '"
311 311
                                      + hub +"')");
src/edu/ucsb/nceas/metacat/DocumentImpl.java
2778 2778
        pStmt = dbConn.prepareStatement("INSERT INTO xml_replication " +
2779 2779
                      "(server, last_checked, replicate, datareplicate, hub) " +
2780 2780
                       "VALUES ('" + server + "', " + 
2781
                       dbAdapter.toDate("01/01/80", "MM/DD/YY") + ", '" +
2781
                       dbAdapter.toDate("01/01/1980", "MM/DD/YYYY") + ", '" +
2782 2782
                       replicate +"', '"+dataReplicate+"','"+ hub + "')");
2783 2783
        
2784 2784
                              
src/edu/ucsb/nceas/metacat/ReplicationServerList.java
452 452
        pStmt = dbConn.prepareStatement("INSERT INTO xml_replication " +
453 453
                      "(server, last_checked, replicate, datareplicate, hub) "+
454 454
                       "VALUES ('" + givenServerName + "', "+
455
                        dbAdapter.toDate("01/01/80","MM/DD/YY") + ", '" +
455
                        dbAdapter.toDate("01/01/1980","MM/DD/YYYY") + ", '" +
456 456
                       replicate +"', '"+dataReplicate+"','"+ hub + "')");
457 457
        pStmt.execute();
458 458
       

Also available in: Unified diff