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
433 stars 68 forks source link

🐞 FIX: endOf skips a day if the day of daylight saving time is chosen in leap year #132

Open ds1371dani opened 1 year ago

ds1371dani commented 1 year ago

For example following command results in wrong value:

moment("2021-03-22T01:01:30.452+04:30").endOf("day").format("jYYYY/jMM/jDD HH:mm")

Correct result: 1400/01/02 23:59 Current result (wrong): 1400/01/03 00:59

netlify[bot] commented 1 year ago

Deploy Preview for cocky-villani-6ba5c0 ready!

Name Link
Latest commit e3b69589b20cf4f769fdc3a59df0dbeda095654e
Latest deploy log https://app.netlify.com/sites/cocky-villani-6ba5c0/deploys/63d4ef54c6c7830008771f7f
Deploy Preview https://deploy-preview-132--cocky-villani-6ba5c0.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] commented 1 year ago

Deploy Preview for silly-euler-c88151 ready!

Name Link
Latest commit e3b69589b20cf4f769fdc3a59df0dbeda095654e
Latest deploy log https://app.netlify.com/sites/silly-euler-c88151/deploys/63d4ef545f96af0009a63140
Deploy Preview https://deploy-preview-132--silly-euler-c88151.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.