Skip to content

Commit

Permalink
[App]: added customParseFormat plugin for dayJS instance in app. Fixe…
Browse files Browse the repository at this point in the history
…d dates on release notes page
  • Loading branch information
AlekseyManetov committed Jun 7, 2024
1 parent 62dbdbc commit a213010
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/helpers/dayJsHelper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable no-restricted-imports */
import dayjs from 'dayjs';
import isBetween from 'dayjs/plugin/isBetween.js';
import customParseFormat from 'dayjs/plugin/customParseFormat.js';

export type { Dayjs } from 'dayjs';

Expand All @@ -12,6 +13,7 @@ function TREE_SHAKEABLE_INIT() {
get dayjs() {
if (!extended) {
dayjs.extend(isBetween);
dayjs.extend(customParseFormat);
extended = true;
}
return dayjs;
Expand Down

0 comments on commit a213010

Please sign in to comment.