| Conditions | 6 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import {chat_v1 as chatV1} from 'googleapis/build/src/apis/chat/v1'; |
||
| 18 | |||
| 19 | protected getUserTimezone(): LocaleTimezone { |
||
| 20 | if (this.event.common?.timeZone?.id) { |
||
| 21 | const locale = this.event.common.userLocale; |
||
| 22 | const id = this.event.common.timeZone.id; |
||
| 23 | const offset = this.event.common.timeZone.offset ?? 0; |
||
| 24 | return {locale, id, offset}; |
||
| 25 | } |
||
| 26 | |||
| 27 | return {'locale': 'en', 'offset': 0, 'id': 'UTC'}; |
||
| 28 | } |
||
| 32 |