Revision 2625
Added by Jing Tao about 19 years ago
src/edu/ucsb/nceas/metacat/DocumentImpl.java | ||
---|---|---|
389 | 389 |
{ |
390 | 390 |
createDate = sqlDateString; |
391 | 391 |
} |
392 |
else |
|
393 |
{ |
|
394 |
createDate = dbAdapter.toDate(createDate, "YYYY-MM-DD HH24:MI:SS"); |
|
395 |
} |
|
392 | 396 |
|
393 | 397 |
if (updateDate == null) |
394 | 398 |
{ |
395 | 399 |
updateDate = sqlDateString; |
396 | 400 |
} |
401 |
else |
|
402 |
{ |
|
403 |
updateDate = dbAdapter.toDate(updateDate, "YYYY-MM-DD HH24:MI:SS"); |
|
404 |
} |
|
397 | 405 |
try |
398 | 406 |
{ |
399 | 407 |
dbconn = DBConnectionPool.getDBConnection( |
... | ... | |
1850 | 1858 |
{ |
1851 | 1859 |
createDate = sysdate; |
1852 | 1860 |
} |
1861 |
else |
|
1862 |
{ |
|
1863 |
createDate = dbAdapter.toDate(createDate, "YYYY-MM-DD HH24:MI:SS"); |
|
1864 |
} |
|
1853 | 1865 |
if (updateDate == null) |
1854 | 1866 |
{ |
1855 | 1867 |
updateDate = sysdate; |
1856 | 1868 |
} |
1869 |
else |
|
1870 |
{ |
|
1871 |
updateDate = dbAdapter.toDate(updateDate, "YYYY-MM-DD HH24:MI:SS"); |
|
1872 |
} |
|
1857 | 1873 |
DocumentImpl thisdoc = null; |
1858 | 1874 |
|
1859 | 1875 |
try { |
Also available in: Unified diff
Add function transfer string to date.