We currently only use the moment library for two things:
calling moment().toISOString()
formatting the initial filename for SLP files
We do not need to import the entirety of moment just to use this functionality. We can simply use (new Date()).toISOString() and import { format } from 'date-fns' to format the date keeping in mind that the format string is 🚨different🚨 to moment.
We currently only use the
moment
library for two things:moment().toISOString()
We do not need to import the entirety of
moment
just to use this functionality. We can simply use(new Date()).toISOString()
andimport { format } from 'date-fns'
to format the date keeping in mind that the format string is 🚨different🚨 tomoment
.