chaimi-keep-mcp 3.3.3-beta.1 → 3.3.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +1 -7
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -1855,13 +1855,7 @@ function formatDateWithTimezone(dateInput) {
|
|
|
1855
1855
|
timestamp = parseInt(dateInput, 10);
|
|
1856
1856
|
}
|
|
1857
1857
|
|
|
1858
|
-
//
|
|
1859
|
-
if (timestamp && timestamp % 1000 === 0 && String(timestamp).length === 13) {
|
|
1860
|
-
console.error(`⚠️ 警告:检测到可能错误的时间戳(秒级转毫秒级):${timestamp},使用当前时间替代`);
|
|
1861
|
-
return Date.now();
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
// 如果是数字时间戳且没问题,直接返回
|
|
1858
|
+
// 如果是数字时间戳,直接返回
|
|
1865
1859
|
if (timestamp) {
|
|
1866
1860
|
return timestamp;
|
|
1867
1861
|
}
|