Revision: 18309 http://sourceforge.net/p/gate/code/18309 Author: markagreenwood Date: 2014-09-11 10:51:21 +0000 (Thu, 11 Sep 2014) Log Message: ----------- fixed to do the relative direction of four digit dates properly
Modified Paths: -------------- gate/trunk/plugins/Tagger_DateNormalizer/src/gate/creole/dates/DateAnnotationNormalizer.java Modified: gate/trunk/plugins/Tagger_DateNormalizer/src/gate/creole/dates/DateAnnotationNormalizer.java =================================================================== --- gate/trunk/plugins/Tagger_DateNormalizer/src/gate/creole/dates/DateAnnotationNormalizer.java 2014-09-11 09:27:18 UTC (rev 18308) +++ gate/trunk/plugins/Tagger_DateNormalizer/src/gate/creole/dates/DateAnnotationNormalizer.java 2014-09-11 10:51:21 UTC (rev 18309) @@ -95,7 +95,7 @@ cal.setTime(documentDate != null ? documentDate : new Date()); Calendar parsed = Calendar.getInstance(); - cal.setTime(d); + parsed.setTime(d); String relative = "present"; if (parsed.before(cal)) relative = "past"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs