Project

General

Profile

« Previous | Next » 

Revision 1753

Added by Jing Tao over 21 years ago

Change the date format from yy-mm-dd to mm/dd/yy.

View differences:

src/edu/ucsb/nceas/metacat/ReplicationHandler.java
608 608
         sql.append(datestr).append("', 'YY-MM-DD HH24:MI:SS') where ");
609 609
         sql.append("server like '").append(server).append("'");*/
610 610
         sql.append("update xml_replication set last_checked = ");
611
         sql.append(dbAdapter.toDate(datestr, "YY-MM-DD HH24:MI:SS"));
611
         sql.append(dbAdapter.toDate(datestr, "MM/DD/YY HH24:MI:SS"));
612 612
         sql.append(" where server like '").append(server).append("'");
613 613
         pstmt = dbConn.prepareStatement(sql.toString());
614 614
         MetaCatUtil.debugMessage("6, new sql for todate:================== "+

Also available in: Unified diff