Skip to content

Issue with "Date" types #33

@maelp

Description

@maelp

Hi!

I really like your tutorial, just had one question, I'm following your tutorial and just have some "timestampz" items in my Postgres database, which are converted by zod to "Date" but of course this isn't JSON serializable, so when I use Hono-client to get my items, all the "Dates" are actually serialized (I guess?) to string, so the result doesn't typecheck...

what is the proper way to handle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions