mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-24 22:46:41 +07:00
fix timezone issues
This commit is contained in:
parent
f0ec6bea8d
commit
aa6accca7a
4 changed files with 9 additions and 4 deletions
|
@ -1,4 +1,6 @@
|
||||||
.drone.yml
|
.drone.yml
|
||||||
node_modules
|
node_modules
|
||||||
.idea
|
.idea
|
||||||
**/node_modules
|
dist
|
||||||
|
.vscode
|
||||||
|
*.test.*
|
|
@ -14,6 +14,7 @@ steps:
|
||||||
- master
|
- master
|
||||||
settings:
|
settings:
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
|
context: "."
|
||||||
tag:
|
tag:
|
||||||
- latest
|
- latest
|
||||||
username:
|
username:
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
FROM node:lts-fermium
|
FROM node:18-bookworm as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apt update && apt install tzdata -y
|
||||||
COPY ./package.json .
|
COPY ./package.json .
|
||||||
COPY ./yarn.lock .
|
COPY ./yarn.lock .
|
||||||
RUN yarn
|
RUN yarn
|
||||||
|
@ -11,7 +12,6 @@ RUN yarn build
|
||||||
|
|
||||||
WORKDIR /app/dist
|
WORKDIR /app/dist
|
||||||
COPY ./docker/wait-for-it.sh .
|
COPY ./docker/wait-for-it.sh .
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["node", "./index.js"]
|
CMD ["node", "./index.js"]
|
||||||
|
|
|
@ -8,7 +8,7 @@ export class CalendarService {
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
key: KeyFile,
|
key: KeyFile,
|
||||||
private timeZone: string, // idk, use it someday
|
private timeZone: string,
|
||||||
private log: (...vals: any) => void
|
private log: (...vals: any) => void
|
||||||
) {
|
) {
|
||||||
this.auth = new google.auth.JWT(
|
this.auth = new google.auth.JWT(
|
||||||
|
@ -61,9 +61,11 @@ export class CalendarService {
|
||||||
description,
|
description,
|
||||||
start: {
|
start: {
|
||||||
dateTime: start.toISOString(),
|
dateTime: start.toISOString(),
|
||||||
|
timeZone: this.timeZone,
|
||||||
},
|
},
|
||||||
end: {
|
end: {
|
||||||
dateTime: end.toISOString(),
|
dateTime: end.toISOString(),
|
||||||
|
timeZone: this.timeZone,
|
||||||
},
|
},
|
||||||
iCalUID: eventId,
|
iCalUID: eventId,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue