mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-17 18:21:04 +10:00
* feat(backend): forgot password * feat: apply feedback from code review * chore(auth): validate the minimum length of 'newPassword' * chore(auth): make token has an expiry of 1 hour * chore: rename all occurrences of 'code' to 'token' * chore(backend): provide value on nanoIdGen method
7 lines
150 B
TypeScript
7 lines
150 B
TypeScript
export const formatDate = (date: Date) => {
|
|
new Intl.DateTimeFormat('en', {
|
|
dateStyle: 'medium',
|
|
timeStyle: 'medium',
|
|
}).format(date);
|
|
};
|