MCPcopy
hub / github.com/xcanwin/KeepChatGPT / normalizeConversationUpdateTime

Function normalizeConversationUpdateTime

KeepChatGPT.user.js:2018–2026  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2016 };
2017
2018 const normalizeConversationUpdateTime = function (value) {
2019 if (!value) {
2020 return null;
2021 }
2022 let updateTime = value;
2023 updateTime = updateTime < 10 ** 10 ? updateTime * 1000 : updateTime;
2024 const parsedDate = new Date(updateTime);
2025 return Number.isNaN(parsedDate.getTime()) ? null : parsedDate;
2026 };
2027
2028 const findConversationMessageForPreview = function (payload) {
2029 const currentNodeMessage =

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected