ngx.http_time()存在时区冲突问题

34 views
Skip to first unread message

田晓勇

unread,
Feb 17, 2022, 4:08:03 AM2/17/22
to open...@googlegroups.com
当我使用OpenResty的resty运行Lua脚本时,发现ngx.http_time()函数存在时区问题,这是什么引起的?应该如何正确的解决呢?
image.png

--
电话: 18336032131
地址: 上海

Junlong li

unread,
Feb 18, 2022, 10:12:36 PM2/18/22
to openresty
这个结果就是符合预期的,不需要解决。

Junlong li

unread,
Feb 18, 2022, 10:13:18 PM2/18/22
to openresty
http time就是使用格林威治时间,所以上面是GMT,这样才符合RFC规范

田晓勇

unread,
Feb 24, 2022, 11:58:59 PM2/24/22
to open...@googlegroups.com
好吧,原来如此,感谢您的解答。

Junlong li <zhuizhu...@gmail.com> 于2022年2月19日周六 11:13写道:
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
---
您收到此邮件是因为您订阅了Google网上论坛上的“openresty”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到openresty+...@googlegroups.com
要在网络上查看此讨论,请访问https://groups.google.com/d/msgid/openresty/f0eda9f9-7ab9-479f-a0c0-ddc4cad49da9n%40googlegroups.com
Reply all
Reply to author
Forward
0 new messages