Revision 2303
Added by Duane Costa over 20 years ago
src/edu/ucsb/nceas/metacat/harvesterClient/HarvestSiteSchedule.java | ||
---|---|---|
186 | 186 |
*/ |
187 | 187 |
public boolean dueForHarvest() { |
188 | 188 |
boolean dueForHarvest = false; |
189 |
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); |
|
189 |
// DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); |
|
190 |
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); |
|
190 | 191 |
Date now = new Date(); |
191 | 192 |
Date dnh; // Date of next harvest |
192 | 193 |
long currentTime = now.getTime(); // Current time in milliseconds |
src/edu/ucsb/nceas/metacat/harvesterClient/HarvesterRegistration.java | ||
---|---|---|
275 | 275 |
Date dlh; // Date of last harvest |
276 | 276 |
Date dnh; // Date of next harvest |
277 | 277 |
Date now = new Date(); // Today's date |
278 |
SimpleDateFormat readFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); |
|
278 |
// SimpleDateFormat readFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); |
|
279 |
SimpleDateFormat readFormat = new SimpleDateFormat("yyyy-MM-dd"); |
|
279 | 280 |
SimpleDateFormat writeFormat = new SimpleDateFormat("dd-MMM-yyyy"); |
280 | 281 |
Statement stmt; |
281 | 282 |
long timeLastHarvest; |
Also available in: Unified diff
Change the date format to one that is standard on both Oracle and Postgres.