Skip to content

Commit

Permalink
fix: resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
huynl-96 committed Sep 21, 2022
1 parent d48a08b commit f9e0b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/useDateFormat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export const formatDate = (date: Date, formatStr: string, options: UseDateFormat
YYYY: () => years,
M: () => month + 1,
MM: () => `${month + 1}`.padStart(2, '0'),
MMM: () => date.toLocaleDateString(locales, { month: 'short' }),
MMMM: () => date.toLocaleDateString(locales, { month: 'long' }),
MMM: () => date.toLocaleDateString(options.locales, { month: 'short' }),
MMMM: () => date.toLocaleDateString(options.locales, { month: 'long' }),
D: () => String(days),
DD: () => `${days}`.padStart(2, '0'),
H: () => String(hours),
Expand Down

0 comments on commit f9e0b88

Please sign in to comment.