mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-25 06:56:40 +07:00
fix timezone issues
This commit is contained in:
parent
f0ec6bea8d
commit
aa6accca7a
4 changed files with 9 additions and 4 deletions
|
@ -8,7 +8,7 @@ export class CalendarService {
|
|||
|
||||
constructor(
|
||||
key: KeyFile,
|
||||
private timeZone: string, // idk, use it someday
|
||||
private timeZone: string,
|
||||
private log: (...vals: any) => void
|
||||
) {
|
||||
this.auth = new google.auth.JWT(
|
||||
|
@ -61,9 +61,11 @@ export class CalendarService {
|
|||
description,
|
||||
start: {
|
||||
dateTime: start.toISOString(),
|
||||
timeZone: this.timeZone,
|
||||
},
|
||||
end: {
|
||||
dateTime: end.toISOString(),
|
||||
timeZone: this.timeZone,
|
||||
},
|
||||
iCalUID: eventId,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue