fingerpich / jalali-moment

Display, parse, manipulate, validate and convert jalali (Persian, Khorshidi, Shamsi) or Gregorian (Miladi) dates and times.
https://fingerpich.github.io/jalali-moment/
MIT License
434 stars 68 forks source link

It determines GMT+325 for Iran's time #93

Closed meness closed 4 years ago

meness commented 4 years ago

Please check this out.

const moment = require("moment");
const jalaliMoment = require("jalali-moment");

console.log(jalaliMoment.utc("09:30", "HH:mm").toDate());

console.log(moment.utc("09:30", "HH:mm").toDate());

Output

Sat Jan 01 0000 12:55:44 GMT+0325 (Iran Standard Time) Tue May 19 2020 14:00:00 GMT+0430 (Iran Daylight Time)

fingerpich commented 4 years ago

Its fixed in master branch, please check.

meness commented 4 years ago

Thanks for the quick fix 👍 Please release a beta/stable version If tests pass then I can install through NPM