codice-fiscale-js
Advanced tools
Comparing version 2.3.18 to 2.3.19
@@ -0,0 +0,0 @@ Attribution-ShareAlike 4.0 International |
{ | ||
"name": "codice-fiscale-js", | ||
"version": "2.3.18", | ||
"version": "2.3.19", | ||
"description": "The Italian Tax Code Library for Javascript and Typescript", | ||
@@ -5,0 +5,0 @@ "main": "dist/codice.fiscale.commonjs2.js", |
@@ -7,3 +7,3 @@ import { Comune } from './comune' | ||
get day () { | ||
return this.birthday.getDate() | ||
return this.birthday.getUTCDay() | ||
} | ||
@@ -14,3 +14,3 @@ set day (d) { | ||
get month () { | ||
return this.birthday.getMonth() + 1 | ||
return this.birthday.getUTCMonth() + 1 | ||
} | ||
@@ -21,3 +21,3 @@ set month (m) { | ||
get year () { | ||
return this.birthday.getFullYear() | ||
return this.birthday.getUTCFullYear() | ||
} | ||
@@ -24,0 +24,0 @@ set year (y) { |
@@ -35,4 +35,5 @@ import { COMUNI } from './lista-comuni' | ||
let result | ||
let count = 0 | ||
for (const item of COMUNI) { | ||
if (item[0] === cc && item[3]==1) { | ||
if ( item[0] === cc && item[3]===1) { | ||
result = item | ||
@@ -39,0 +40,0 @@ break |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3374080
16434