nodejs,typeorm和postgresql中的时区
我的数据库记录时间有问题。在我需要的区域中,数据库时区还可以。不在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论