Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#598·chancejs

Make date generators locale agnostic

Author: Yohe-AmCreated Feb 21, 2024Updated May 17, 2024

Usage of `getTime` in the library (as opposed `getUTCTime`) means that generated values differ according to locale despite having the same seed value. We run into this in our snapshot tests and if not possible to switch to `UTC` based functions, an config option to swap between the two would be nice.

Source: chancejs/chancejs

View original on GitHubView discussion on GitHub