mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-2421 Fixing test failure in DateTestTag if calculated year is a leap year
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@642295 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -229,6 +229,7 @@ public class DateTagTest extends AbstractTagTest {
|
||||
Calendar future = Calendar.getInstance();
|
||||
future.setTime(now);
|
||||
future.add(Calendar.YEAR, 2);
|
||||
future.add(Calendar.DATE, 1);
|
||||
future.add(Calendar.SECOND, 5); // always add a little slack otherwise we could calculate wrong
|
||||
|
||||
context.put("myDate", future.getTime());
|
||||
|
||||
Reference in New Issue
Block a user