MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / parseGoogleChatDate

Function parseGoogleChatDate

packages/parser/src/formats/google-chat-takeout.ts:173–175  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

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

Callers 1

parseGoogleChatFunction · 0.85

Calls 2

parseChineseUtcDateFunction · 0.85
parseEnglishUtcDateFunction · 0.85

Tested by

no test coverage detected