Hacker GitHub

← All repos

iamkun/dayjs

View on GitHub ↗ ★ 48,660 JavaScript

⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API

9 mentions on Hacker News by 7 people: 3 stories, 6 comments · first 2018-05-22 · latest 2024-04-12

Mentions per year 9 mentions · busiest year 2018 (2)
20082026
  1. …to Moment, with over 17mil weekly downloads on npm. A critical bug was discovered in Day.js (see: https://github.com/iamkun/dayjs/pull/2118 ) causing incorrect date manipulation (add, subtract) when in UTC TZ. This could have severe…
  2. …concerned with these kinds of corner cases, maybe day.js isn't the library for you.[1][2] [1]: https://github.com/iamkun/dayjs/issues/1816 [2]: https://github.com/iamkun/dayjs/issues/1817
  3. …whatever you’re using now, and you can’t wait for the new standard, I’d pick one of those. [1]: https://github.com/iamkun/dayjs/issues/1816 [2]: https://github.com/iamkun/dayjs/issues/1817
  4. …) and is full of serious bugs that its developer does not respond to: https://github.com/iamkun/dayjs/issues Also the code style is really concerning too: https://github.com/iamkun/dayjs/issues/1598
    comment by sydd · 2021-09-19 · in You may not need Moment.js
  5. …nice libraries written and maintained independently by devs (or small startups) in China. dayjs - https://github.com/iamkun/dayjs GPT2 in Chinese - https://github.com/Morizeyao/GPT2-Chinese Wechaty - https://github.com/wechaty vercel ssg -…
  6. Can recommend DayJS[0] as a lighter alternative to MomentJS with an almost identical API. [0] https://github.com/iamkun/dayjs