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

Inconsistent Results Between dist and library #126

Open
RafeSafari opened this issue Feb 27, 2022 · 0 comments
Open

Inconsistent Results Between dist and library #126

RafeSafari opened this issue Feb 27, 2022 · 0 comments

Comments

@RafeSafari
Copy link

RafeSafari commented Feb 27, 2022

It may be wrong, but I think there are different results for the export in dist and the project itself.
I imported project through npm and using latest version which is 1.1.0. For the client side, used the minified version in dist directory.
The result for new persianDate(1742502599000).format() in client side is "۱۴۰۴-۰۱-۰۱ ۲۳:۵۹:۵۹ ب ظ".
However it will be "۱۴۰۳-۱۲-۳۰ ۲۳:۵۹:۵۹ ب ظ" for the server side.
Note that server is true and perhaps client did not count year 1403 as a leap year.

Another way to reproduce the problem is to use new persianDate().add('day', XXX) and increase XXX to reach the critical point of "۱۴۰۳-۱۲-۳۰"

@RafeSafari RafeSafari changed the title Inconsistency Between dist and library Inconsistent Results Between dist and library Feb 27, 2022
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