Closed vresetnikov closed 1 year ago
Hello, for some reason I am not able to do the following:
const assignmentDate = spacetime("2022-11-21T00:00:00.000Z").i18n(i18nConfig).format("{day-short}, {month-short}, {date}, {year}");
I receive the following error:
Cannot read properties of undefined (reading 'format')
Not sure if this is intended. The following functions as a workaround:
const assignmentDate = spacetime("2022-11-21T00:00:00.000Z"); assignmentDate.i18n(i18nConfig); const formattedAssignmentDate = assignmentDate.format( "{day-short}, {month-short}, {date}, {year}" );
good catch, fixed in 7.4.2 cheers!
Hello, for some reason I am not able to do the following:
I receive the following error:
Cannot read properties of undefined (reading 'format')
Not sure if this is intended. The following functions as a workaround: