主题中讨论的其他器件:Wi-SUN
尊敬的 TI 工程师:
我在连接到 CC1352P7-1 Launchpad 的 AM64x 入门套件上运行一个 Wi-SUN wfantund 和 wisun-webapp。 感觉都挺好的。
但是、我今天发现了一个新问题。
Wi-SUN 网络监视器仪表板上显示的时间与我的系统时间不同步。 我已将系统时间设置为我自己的国家时区。
sudo dpkg-reconfigure tzdata
请提供建议。

This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
尊敬的 TI 工程师:
我在连接到 CC1352P7-1 Launchpad 的 AM64x 入门套件上运行一个 Wi-SUN wfantund 和 wisun-webapp。 感觉都挺好的。
但是、我今天发现了一个新问题。
Wi-SUN 网络监视器仪表板上显示的时间与我的系统时间不同步。 我已将系统时间设置为我自己的国家时区。
sudo dpkg-reconfigure tzdata
请提供建议。

尊敬的 Tim:
查看 ti-wisun-webapp\server\Datal\PingExecutor.js 的第68行,我们似乎在使用 src ()对象作为时间戳源(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects /日期)。
您的意思是与您的 Web 浏览器上的时间不匹配? 或者您看到的时间戳与 AM64系统时间不匹配?
此致、
亚瑟
安装不包括"构建"程序。 这也是我尝试"构建"命令时得到的结果。
ti-wisun-webapp/server$ sudo npm run build npm ERR! Missing script: "build" npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2024-04-24T17_30_58_267Z-debug.log
尊敬的 Tim:
如果您将 utils.js 第10行的 Date() instanciation 修改为您的时区:
你在给定的时间内是否发现任何差异? 我问的原因是、服务器端的时区似乎已硬编码。
function timestamp(date) {
let dateToFormat = date ? date : new Date();
return (
dateToFormat.toLocaleString('en-US', {
timeZone: 'America/Chicago',
}) +
' ' +
dateToFormat.getUTCMilliseconds() +
'ms'
);
}
此致。
亚瑟