| 1 | import dayjs from "dayjs" |
| 2 | import customParseFormat from "dayjs/plugin/customParseFormat" |
| 3 | import duration from "dayjs/plugin/duration" |
| 4 | import relativeTime from "dayjs/plugin/relativeTime" |
| 5 | import timezone from "dayjs/plugin/timezone" |
| 6 | import utc from "dayjs/plugin/utc" |
| 7 | import "dayjs/locale/it" |
| 8 | import "dayjs/locale/en" |
| 9 | import "dayjs/locale/de" |
| 10 | import "dayjs/locale/es" |
| 11 | import "dayjs/locale/fr" |
| 12 | import "dayjs/locale/ja" |
| 13 | |
| 14 | /* |
| 15 | import isSameOrAfter from "dayjs/plugin/isSameOrAfter" |
| 16 | dayjs.extend(isSameOrAfter) |
| 17 | */ |
| 18 | dayjs.extend(utc) |
| 19 | dayjs.extend(relativeTime) |
| 20 | dayjs.extend(duration) |
| 21 | dayjs.extend(customParseFormat) |
| 22 | dayjs.extend(timezone) |
| 23 | dayjs.tz.setDefault(dayjs.tz.guess()) |
| 24 | |
| 25 | export default dayjs |