https://linux.do/t/topic/2502680
[108500.jpg]
[108498.jpg]
佬友们怎么看呢?我感觉A÷是真该死啊,反华就算了,模型又贵,现在智商还被5.6反超了不如倒闭算了。
省流,使用TZ覆盖Bash时区启动Claude Code:
Bash TZ=America/Los_Angeles claude
Powershell
$env:TZ = "America/Los_Angeles"
claude
也可以在Bash Profile增加一个别名:
alias claude-us='TZ=America/Los_Angeles claude'
[update]
cc-switch 解决方法:
在env中添加 "TZ": "America/Los_Angeles"

已经过验证:
ANTHROPIC_BASE_URL=http://127.0.0.1:47631 ANTHROPIC_API_KEY=local-test-token TZ=UTC claude -p "timezone probe, reply ok"
currentDate: Today's date is 2026-06-30.
ANTHROPIC_BASE_URL=http://127.0.0.1:47631 ANTHROPIC_API_KEY=local-test-token TZ=Asia/Shanghai claude -p "timezone probe, reply ok"
currentDate: Today's date is 2026/06/30.
验证脚本:
const http = require("http");
const port = 47631;
const server = http.createServer((req, res) => {
if (req.method === "HEAD") {
res.writeHead(200, { "content-type": "application/json" });
res.end();
return;
}
const chunks = [];
req.on("data", (chunk) => chunks.push(chunk));
req.on("end", () => {
const body = Buffer.concat(chunks).toString("utf8");
let currentDate = null;
try {
const payload = JSON.parse(body);
const strings = [];
const walk = (value) => {
if (typeof value === "string") {
strings.push(value);
} else if (Array.isArray(value)) {
value.forEach(walk);
} else if (value && typeof value === "object") {
Object.values(value).forEach(walk);
}
};
walk(payload);
for (const value of strings) {
const match = value.match(/# currentDate\n([^\n]+)/);
if (match) {
currentDate = match[1];
break;
}
}
} catch {
currentDate = null;
}
console.log(JSON.stringify({
method: req.method,
url: req.url,
headers: {
host: req.headers.host,
"content-type": req.headers["content-type"],
"anthropic-beta": req.headers["anthropic-beta"],
},
currentDate,
}, null, 2));
res.writeHead(401, { "content-type": "application/json" });
res.end(JSON.stringify({
type: "error",
error: {
type: "authentication_error",
message: "local timezone probe complete",
},
}));
server.close(() => process.exit(0));
});
});
server.listen(port, "127.0.0.1", () => {
console.log(`listening http://127.0.0.1:${port}`);
});
setTimeout(() => {
server.close(() => process.exit(2));
}, 120000);