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

API - fromGregorianDate giving one day ahead #497

Open
nithincvpoyyil opened this issue Mar 12, 2021 · 2 comments
Open

API - fromGregorianDate giving one day ahead #497

nithincvpoyyil opened this issue Mar 12, 2021 · 2 comments

Comments

@nithincvpoyyil
Copy link

kollavarsham.fromGregorianDate(new Date()) gives me below date, but actual malayalm calender showing date as '28'

{
"_naksatra": {
"saka": "P-bhadrapada",
"enMalayalam": "Poororuttathi",
"mlMalayalam": "പൂരുരുട്ടാതി"
},
"year": 1196,
"month": 7,
"date": 29,
"gregorianDate": "2021-03-12T15:36:22.094Z",
"julianDay": 2459286,
"ahargana": 1870820,
"sauraMasa": 10,
"sauraDivasa": 29,
"sakaDate": {
"_naksatra": {
"saka": "P-bhadrapada",
"enMalayalam": "Poororuttathi",
"mlMalayalam": "പൂരുരുട്ടാതി"
},
"year": 1942,
"month": 10,
"date": 14,
"gregorianDate": "2021-03-12T15:36:22.094Z",
"julianDay": 2459286,
"ahargana": 1870820,
"sauraMasa": 10,
"sauraDivasa": 29,
"paksa": "Krsnapaksa",
"kaliYear": 5121,
"adhimasa": "",
"fractionalTithi": 0.7046195776476161,
"sunriseHour": 6,
"sunriseMinute": 3,
"originalAhargana": 1870820.2512182216
}
}

@nithincvpoyyil
Copy link
Author

nithincvpoyyil commented Mar 12, 2021

Date showing in another calender

Screenshot 2021-03-12 at 9 00 36 pm

@nithincvpoyyil
Copy link
Author

Date by Kollavarsham.fromGregDate()

Screenshot 2021-03-12 at 8 58 30 pm

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

1 participant