You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 "۱۴۰۳-۱۲-۳۰"
The text was updated successfully, but these errors were encountered:
RafeSafari
changed the title
Inconsistency Between dist and library
Inconsistent Results Between dist and library
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 increaseXXX
to reach the critical point of"۱۴۰۳-۱۲-۳۰"
The text was updated successfully, but these errors were encountered: