mirror of
https://github.com/danog/CodiceFiscaleJS.git
synced 2024-11-30 04:29:11 +01:00
Merge pull request #15 from arseniosiani/master
the birth date results in one day loss
This commit is contained in:
commit
5eb6f3c3c8
@ -97,7 +97,7 @@ class CodiceFiscale {
|
|||||||
name: this.name,
|
name: this.name,
|
||||||
surname: this.surname,
|
surname: this.surname,
|
||||||
gender: this.gender,
|
gender: this.gender,
|
||||||
birthday: this.birthday.toISOString().slice(0,10),
|
birthday: this.birthday.getFullYear()+"-"+(("00" + this.birthday.getMonth()).slice(-2))+"-"+(("00" + this.birthday.getDate()).slice(-2)),
|
||||||
birthplace: this.birthplace.nome,
|
birthplace: this.birthplace.nome,
|
||||||
birthplaceProvincia: this.birthplace.prov,
|
birthplaceProvincia: this.birthplace.prov,
|
||||||
cf: this.code,
|
cf: this.code,
|
||||||
|
Loading…
Reference in New Issue
Block a user