Whenever I create a user account using Prisma 7 and better-auth, I get the following error on my server:
2025-12-03T06:19:41.870Z ERROR [Better Auth]: TypeError 279 | }280 | function normalize_date(date) {281 | return date;282 | }283 | function normalize_timestamp(time) {284 | return `${time.replace(" ", "T")}+00:00`; ^TypeError: null is not an object (evaluating 'time.replace')
2025-12-03T06:19:41.870Z ERROR [Better Auth]: TypeError 279 | }280 | function normalize_date(date) {281 | return date;282 | }283 | function normalize_timestamp(time) {284 | return `${time.replace(" ", "T")}+00:00`; ^TypeError: null is not an object (evaluating 'time.replace')
I found out that this error is coming from the @prisma/adapter-ppg package, but wondering what is calling this function? Maybe the better-auth adapter for Prisma?
I can't seem to find it why this is happening.
Does someone have any clue on how to fix this or what's the issue?