Project

General

Profile

« Previous | Next » 

Revision 1752

Added by Jing Tao over 21 years ago

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

View differences:

src/edu/ucsb/nceas/metacat/MetacatReplication.java
1317 1317
  private void handleGetTimeRequest(PrintWriter out, Hashtable params, 
1318 1318
                                    HttpServletResponse response)
1319 1319
  {
1320
    SimpleDateFormat formatter = new SimpleDateFormat ("yy-MM-dd HH:mm:ss");
1320
    SimpleDateFormat formatter = new SimpleDateFormat ("MM/dd/yy HH:mm:ss");
1321 1321
    java.util.Date localtime = new java.util.Date();
1322 1322
    String dateString = formatter.format(localtime);
1323 1323
    response.setContentType("text/xml");

Also available in: Unified diff