Merge pull request #1 from arseniosiani/arseniosiani-patch-1

changed toISOString() into a more elaborate version
This commit is contained in:
Arsenio Siani 2018-11-14 18:55:04 +01:00 committed by GitHub
commit 8490e513ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ class CodiceFiscale {
name: this.name,
surname: this.surname,
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,
birthplaceProvincia: this.birthplace.prov,
cf: this.code,