mirror of
https://github.com/urosran/cally.git
synced 2025-07-14 17:25:46 +00:00
Use cally everywhere
This commit is contained in:
@ -81,8 +81,9 @@ export const ManuallyAddEventModal = ({
|
||||
|
||||
const { mutateAsync: createEvent, isLoading, isError } = useCreateEvent();
|
||||
|
||||
const formatDateTime = (date: Date) => {
|
||||
return date.toLocaleDateString("en-US", {
|
||||
const formatDateTime = (date?: Date | string) => {
|
||||
if(!date) return undefined
|
||||
return new Date(date).toLocaleDateString("en-US", {
|
||||
weekday: "long",
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
|
Reference in New Issue
Block a user