Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
meness opened this issue May 19, 2020 · 2 comments
Open

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

meness opened this issue May 19, 2020 · 2 comments

Comments

@meness
Copy link

meness commented May 19, 2020

Please check this out.

const moment = require("moment");
const momentJalaali = require("moment-jalaali");

// It defines Jalaali
momentJalaali.loadPersian({
  usePersianDigits: false,
  dialect: "persian-modern"
});

// Revert default locale.
moment.locale("en");

console.log(momentJalaali.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)

@behrang
Copy link
Member

behrang commented Jun 10, 2020 via email

@meness
Copy link
Author

meness commented Jun 10, 2020

jalali-moment has recently fixed it. I wish I could help, but I'm busy these days, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants