moment
moment copied to clipboard
Parse, validate, manipulate, and display dates in javascript.
In the beginning of 2022, there are a few “weird days” where the week numbers in various methods don’t line up because `Moment.js` is internally working with ISO-8601 week numbers...
I am getting some weird output for certain dates for moment js. It is only for the dates 1st, 2nd and 3rd of Jan 2022 otherwise it works as expected....
1. Moment.js is lacking JSDoc comments for methods like `add` on `moment.Moment` objects: for what they actually do with arguments; 2. Then I expect for methods like `add`, `sub` etc....
**Describe the bug** Parsing the HH:mm along with timezone should give same date. But is returning previous date **To Reproduce** Steps to reproduce the behavior: ``` > moment() Moment #...
I need to parse a 16 bit microsecond timestamp Now i have this format with microsecond ```1651107155498222``` I checked the relevant [documents ](https://momentjs.com/docs/#/displaying/format/)and found that the moment only supports parsing...
**Describe the bug** Hello, I have a hit from a code scanner on this function, and I'm not certain if this is an actual bug or not. I'm not familiar...
This pull request will add Pashto language locale to moment.js, which is spoken by around 30 millions people in Afghanistan
[https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4](https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4) As mentioned above in the security advisory. This problem is patched in 2.29.2, and the patch can be applied to all affected versions (from 1.0.1 up until 2.29.1, inclusive)....
## Issue Currently importing moment/min/moment-with-locales produces a type error. ```typescript import moment from 'moment/min/moment-with-locales'; // Error(ts 7016): Could not find a declaration file for module 'moment/min/moment-with-locales'. ``` It is an...
There is an edge case in isLocaleNameSane function. this happens if you pass an undefined value as locale name to a function which uses loadLocale the function throws an error...