Skip to content

[Database] Prisma Timezone 세팅 추가 - 미들웨어로 동작하도록 구현 #99

Description

@stae1102

문제 상황

image

현재 @db.Timestamptz 로 타임존까지 관리해 로컬 타임도 설정해주려고 했는데 위처럼 타임존이 없이 9시간 이전으로 돌아가 버리네요.

문제 해결방안

prisma/prisma#5051

미들웨어 사용해서 타임존 세팅하는 방법도 있네요.

이걸로 한 번 해결해볼게요!

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions