Open kasir-barati opened 3 years ago
Conver the Jalali to Gregorian when i write this code:
let JDate = require('jalali-date'); let temp = new JDate(1399, 11, 22);
It is behind, One day!
let JDate = require('jalali-date'); let temp = new JDate(1399, 11, 22); console.log(temp._d); // 2021-02-09T20:30:00.000Z console.log(new Date); //2021-02-10T07:46:28.132Z
hmm... Not sure what's wrong. It seems like it has something to do with timezone. What's your timezone?
I have faced the same problem too. It is one day behind
My system info
what i expect:
Conver the Jalali to Gregorian when i write this code:
what happened:
It is behind, One day!
why is this happening?