nodejs,typeorm和postgresql中的时区

发布于 2025-02-10 21:06:46 字数 164 浏览 1 评论 0原文

我的数据库记录时间有问题。在我需要的区域中,数据库时区还可以。不在API中,我总是必须将Process.env.tz放在我需要的区域中。即使这样,我也无法进入正确的时间,它总是长3个小时。我使用的是带有TS和TypeOm的Nodejs,数据库是PostgreSQL。我也无法在Github上找到帮助。有人有想法吗?

I have a problem with the time of my database records. The database time zone is ok, in the region I need. Not in the api, I always have to put the process.env.tz in the region I need. Even so, I can't make it go to the correct time, it always goes 3 hours longer. I'm using nodejs with ts and typeorm, the database is postgresql. I couldn't find help on github either. Does anyone have any ideas ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文