Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebornian48 committed Jan 15, 2024
1 parent ba05b6c commit 48b18ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ function parseNIK() {
// Parse the date
var date = new Date(thn, parseInt(bln, 10) - 1, tgl % 40);
var d1 = new Date("2014-01-28");
var d = 86400000;
const newLocal = 86400000;
var d = newLocal;
var selisih = Math.floor(Math.abs(d1 - date) / d);
var pasar = pasaran[selisih % 5];
// Parse the date for human
Expand Down

0 comments on commit 48b18ed

Please sign in to comment.