(value: string)
| 171 | * 中文和英文 UTC 形式,避免宿主机 locale 或 Date.parse 产生不稳定结果。 |
| 172 | */ |
| 173 | export function parseGoogleChatDate(value: string): number | null { |
| 174 | return parseChineseUtcDate(value) ?? parseEnglishUtcDate(value) |
| 175 | } |
| 176 | |
| 177 | function normalizeIdentity(user: GoogleChatUser | undefined): { platformId: string; name: string } { |
| 178 | const email = user?.email?.trim().toLowerCase() |
no test coverage detected