lucavandro / CodiceFiscaleJS

CodiceFiscale.js is a utility library to compute and validate Italian Tax code (codice fiscale).
Creative Commons Attribution Share Alike 4.0 International
197 stars 77 forks source link

the birth date results in one day loss #15

Closed arseniosiani closed 5 years ago

arseniosiani commented 5 years ago

since the date contains the time zone

new Date("2000-01-01 00:00:00")  //Sat Jan 01 2000 00:00:00 GMT+0100 . please note GMT+1

converting to ISO, results to convert in UTC

new Date("2000-01-01 00:00:00").toISOString()  //"1999-12-31T23:00:00.000Z" the UTC lose 1 hour
mrksoftware commented 5 years ago

Hi! Any plan to merge this pull request? Thank you in advance

lucavandro commented 5 years ago

Hi! Any plan to merge this pull request? Thank you in advance

Merged