From cf641d273f36a98a1b0a10de1d4704b757005fa1 Mon Sep 17 00:00:00 2001 From: hou27 Date: Fri, 2 Dec 2022 22:39:21 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=8B=A4=EC=8B=9C=20timezone=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20-=20#132?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- docker-compose.yml | 2 ++ src/users/users.service.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8e00d3b..833cf32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ COPY --from=builder /app ./ # Timezone setting ## install tzdata package for timezone setting -# RUN apk add tzdata && ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime +RUN apk add tzdata && ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime EXPOSE 4000 CMD npm run start:prod \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 9470968..a21e5f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,8 @@ services: - .env.prod environment: POSTGRES_HOST_AUTH_METHOD: 'trust' + TZ: 'Asia/Seoul' # Timezone for OS + PGTZ: 'Asia/Seoul' # Timezone for postgres ports: - 5432:5432 networks: diff --git a/src/users/users.service.ts b/src/users/users.service.ts index 3aaa270..8d41130 100644 --- a/src/users/users.service.ts +++ b/src/users/users.service.ts @@ -109,6 +109,8 @@ export class UsersService { ); } + console.log(contents); + return { contents, };