]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/DateSelector.java
add: add boolean to separate groups for user and support
[gigi.git] / src / org / cacert / gigi / output / DateSelector.java
index c4af9b03886a34dbc9d1e6dfc5ec34ab61896a13..2557282abe8dad4b8737b9ff6fd6baa0e972d6d4 100644 (file)
@@ -12,8 +12,8 @@ import javax.servlet.http.HttpServletRequest;
 import org.cacert.gigi.GigiApiException;
 import org.cacert.gigi.localisation.Language;
 import org.cacert.gigi.output.template.Outputable;
-import org.cacert.gigi.util.DayDate;
 import org.cacert.gigi.util.CalendarUtil;
+import org.cacert.gigi.util.DayDate;
 import org.cacert.gigi.util.HTMLEncoder;
 
 public class DateSelector implements Outputable {
@@ -22,7 +22,7 @@ public class DateSelector implements Outputable {
 
     public DateSelector(String day, String month, String year, DayDate date) {
         this(day, month, year);
-        Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTF"));
+        Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
         cal.setTimeInMillis(date.getTime());
         this.day = cal.get(Calendar.DAY_OF_MONTH);
         this.month = cal.get(Calendar.MONTH) + 1;
@@ -90,7 +90,7 @@ public class DateSelector implements Outputable {
         if (year != 0) {
             out.print(year);
         }
-        out.print("\" size=\"4\" autocomplete=\"off\">");
+        out.println("\" size=\"4\" autocomplete=\"off\">");
     }
 
     public void update(HttpServletRequest r) throws GigiApiException {
@@ -115,7 +115,7 @@ public class DateSelector implements Outputable {
     }
 
     public boolean isValid() {
-        if ( !(1900 < year && 1 <= month && month <= 12 && 1 <= day && day <= 32)) {
+        if ( !(1890 < year && 1 <= month && month <= 12 && 1 <= day && day <= 32)) {
             return false;
         }