Skip to content

Commit

Permalink
fix: fix ics timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Jun 30, 2022
1 parent 31dbc48 commit 1e93bf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ FROM alpine
WORKDIR /app
EXPOSE 8080
ENV NODE_ENV production
ENV TZ Asia/Shanghai
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/LICENSE /app/package.json /app/yarn.lock ./
RUN apk add --no-cache nodejs yarn && \
Expand Down
1 change: 1 addition & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ async function getIcs(lang: string, ojs: string[])
start: convertTimestampToArray(c.startTime.getTime(), "local"),
startOutputType: "local",
end: convertTimestampToArray(c.endTime.getTime(), "local"),
endOutputType: "local",
calName: "算法竞赛",
productId: "-//StableAgOH//LSCT//CN",
title: c.name,
Expand Down

0 comments on commit 1e93bf9

Please sign in to comment.