mirror of
https://github.com/danog/CodiceFiscaleJS.git
synced 2024-11-26 20:14:55 +01:00
Fix Bug #7: setMonth(mm-1) quando selezionato Febbraio ritorna Marzo
This commit is contained in:
parent
3d6a36a1b9
commit
a08357194c
2
dist/codice.fiscale.amd.js
vendored
2
dist/codice.fiscale.amd.js
vendored
File diff suppressed because one or more lines are too long
2
dist/codice.fiscale.commonjs2.js
vendored
2
dist/codice.fiscale.commonjs2.js
vendored
File diff suppressed because one or more lines are too long
2
dist/codice.fiscale.umd.js
vendored
2
dist/codice.fiscale.umd.js
vendored
File diff suppressed because one or more lines are too long
2
dist/codice.fiscale.var.js
vendored
2
dist/codice.fiscale.var.js
vendored
File diff suppressed because one or more lines are too long
@ -67,7 +67,7 @@ class CodiceFiscale {
|
||||
static dateCode (gg, mm, aa, gender) {
|
||||
const date = new Date()
|
||||
date.setYear(aa)
|
||||
date.setMonth(mm - 1)
|
||||
date.setMonth(mm - 1, 1)
|
||||
date.setDate(gg)
|
||||
// Padding year
|
||||
let year = '0' + date.getFullYear()
|
||||
|
Loading…
Reference in New Issue
Block a user