mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add moment mutability notice for future generations
This commit is contained in:
@ -606,6 +606,7 @@ const dateCache = new Map();
|
||||
|
||||
/**
|
||||
* Cached version of moment() to avoid re-parsing the same date strings.
|
||||
* Important: Moment objects are mutable, so use clone() before modifying them!
|
||||
* @param {any} timestamp String or number representing a date.
|
||||
* @returns {*} Moment object
|
||||
*/
|
||||
|
Reference in New Issue
Block a user