mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fix(test/server): dayjs initialization issue
This commit is contained in:
@@ -36,11 +36,11 @@ export async function initializeTranslations() {
|
||||
} catch (err) {
|
||||
console.warn(`Could not load locale ${dayjsLocale}`, err);
|
||||
}
|
||||
dayjs.locale(dayjsLocale);
|
||||
}
|
||||
|
||||
export function ordinal(date: Dayjs) {
|
||||
return dayjs(date)
|
||||
.locale(dayjsLocale)
|
||||
.format("Do");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user