directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-commander git commit: FC-98 - fortress-web date constraint bugs - fix month picker
Date Fri, 01 May 2015 03:50:18 GMT
Repository: directory-fortress-commander
Updated Branches:
  refs/heads/master 1a1b10e51 -> 52b30c402


FC-98 - fortress-web date constraint bugs - fix month picker


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/commit/52b30c40
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/tree/52b30c40
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/diff/52b30c40

Branch: refs/heads/master
Commit: 52b30c4028efeab7dca0ce5d53c7fe89d9408020
Parents: 1a1b10e
Author: Shawn McKinney <smckinney@apache.org>
Authored: Thu Apr 30 22:37:32 2015 -0500
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Thu Apr 30 22:37:32 2015 -0500

----------------------------------------------------------------------
 .../apache/directory/fortress/web/panel/ConstraintBasePanel.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/blob/52b30c40/src/main/java/org/apache/directory/fortress/web/panel/ConstraintBasePanel.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/web/panel/ConstraintBasePanel.java
b/src/main/java/org/apache/directory/fortress/web/panel/ConstraintBasePanel.java
index 013a459..c702608 100644
--- a/src/main/java/org/apache/directory/fortress/web/panel/ConstraintBasePanel.java
+++ b/src/main/java/org/apache/directory/fortress/web/panel/ConstraintBasePanel.java
@@ -394,6 +394,8 @@ public class ConstraintBasePanel extends FormComponentPanel
             {
                 int years = new Integer( szDate.substring( 0, 4 ) );
                 int months = new Integer( szDate.substring( 4, 6 ) );
+                // Convert months because the Calendar uses 0 - 11:
+                months = months - 1;
                 int days = new Integer( szDate.substring( 6, 8 ) );
                 calendar.set( years, months, days, 0, 0 );
                 date = calendar.getTime();


Mime
View raw message