OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 108 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 108 Rev 140
Line 42... Line 42...
42
                        if (month > 12 && month <= 31 && day <= 12) {
42
                        if (month > 12 && month <= 31 && day <= 12) {
43
                            swap = month;
43
                            swap = month;
44
                            month = day;
44
                            month = day;
45
                            day = swap;
45
                            day = swap;
46
                        }
46
                        }
47
                        if (month <= 12 && month > 0 && day <= 31 && day > 0 && year > 2000 && year < 4000) {
47
                        if (month < 12 && month >= 0 && day <= 31 && day > 0 && year > 2000 && year < 4000) {
48
                            c.set(Calendar.DAY_OF_MONTH, day);
48
                            c.set(Calendar.DAY_OF_MONTH, day);
49
                            c.set(Calendar.MONTH, month);
49
                            c.set(Calendar.MONTH, month);
50
                            c.set(Calendar.YEAR, year);
50
                            c.set(Calendar.YEAR, year);
51
                            result = c.getTime();
51
                            result = c.getTime();
52
                            break;
52
                            break;