From: <hei...@us...> - 2008-08-20 12:20:28
|
Revision: 1483 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=1483&view=rev Author: heikkidoeleman Date: 2008-08-20 12:20:37 +0000 (Wed, 20 Aug 2008) Log Message: ----------- No longer use deprecated method from java.util.Date Modified Paths: -------------- trunk/src/org/wfp/vam/intermap/http/cache/HttpGetFileCache.java Modified: trunk/src/org/wfp/vam/intermap/http/cache/HttpGetFileCache.java =================================================================== --- trunk/src/org/wfp/vam/intermap/http/cache/HttpGetFileCache.java 2008-08-20 11:40:32 UTC (rev 1482) +++ trunk/src/org/wfp/vam/intermap/http/cache/HttpGetFileCache.java 2008-08-20 12:20:37 UTC (rev 1483) @@ -115,7 +115,7 @@ Date t = new Date(f.lastModified()); Calendar c = Calendar.getInstance(); - c.set(t.getYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds()); + c.setTime(t); return c; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |