Issue #13 Corrected valid month check - from code review

Change-Id: I92d52e191749313b846871c5d8cd7c2fdc3c73c3
Former-commit-id: acc875bba511ea417237590671e1b2fccdb3125d
This commit is contained in:
James Korman 2012-01-31 16:18:48 -06:00
parent 53b5faf65b
commit 5a5bb12712

View file

@ -128,7 +128,8 @@ public class TimeTools {
/**
* Get a calendar that expresses the current system time based from specified
* date information if the
* date information only if the archive flag is set. Otherwise the current
* system time is returned.
* @param year Year to set.
* @param month
* @param day
@ -503,7 +504,7 @@ public class TimeTools {
* @return Is the month valid?
*/
public static final boolean isValidMonth(int month) {
return ((month > -1)&&(month <= 12));
return ((month > 0)&&(month <= 12));
}
/**