mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-24 22:46:41 +07:00
fix timezone on calendar requests
This commit is contained in:
parent
85a2bf0dd9
commit
f0ec6bea8d
2 changed files with 2 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
.drone.yml
|
.drone.yml
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
|
||||||
.idea
|
.idea
|
||||||
|
**/node_modules
|
|
@ -8,7 +8,7 @@ export class CalendarService {
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
key: KeyFile,
|
key: KeyFile,
|
||||||
private timeZone: string,
|
private timeZone: string, // idk, use it someday
|
||||||
private log: (...vals: any) => void
|
private log: (...vals: any) => void
|
||||||
) {
|
) {
|
||||||
this.auth = new google.auth.JWT(
|
this.auth = new google.auth.JWT(
|
||||||
|
@ -61,11 +61,9 @@ 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