Skip to content

Commit

Permalink
localize time formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sauldom102 committed Jan 2, 2025
1 parent 5f7fd08 commit cdaa025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lib/date.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { format } from "date-fns"

export function formatTime(date: Date) {
return format(date, "HH:mm")
return format(date, "p")
}

export function getAbbreviateMonth(date: Date) {
Expand Down

0 comments on commit cdaa025

Please sign in to comment.