You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/19 07:04:33 UTC

[GitHub] [apisix] whioue opened a new issue #6148: request help: How to modify the time zone in the error message

whioue opened a new issue #6148:
URL: https://github.com/apache/apisix/issues/6148


   ### Issue description
   
   当我创建了一个jwt认证,设置了token的超时时间,通过api获取到token后,超过超时时间后使用此token会得到报错信息如下:
   ![image](https://user-images.githubusercontent.com/47098518/150080588-0bfb3367-c645-47bb-aac2-336ae953630d.png)
   应该如何修改时区,将GMT修改成CST?
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):V2.8
   - OS (cmd: `uname -a`):Centos7
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] whioue closed issue #6148: request help: How to modify the time zone in the error message

Posted by GitBox <gi...@apache.org>.
whioue closed issue #6148:
URL: https://github.com/apache/apisix/issues/6148


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #6148: request help: How to modify the time zone in the error message

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #6148:
URL: https://github.com/apache/apisix/issues/6148#issuecomment-1016298069


   How did you sign the JWT token? The `exp` is numeric UNIX timestamp.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] whioue commented on issue #6148: request help: How to modify the time zone in the error message

Posted by GitBox <gi...@apache.org>.
whioue commented on issue #6148:
URL: https://github.com/apache/apisix/issues/6148#issuecomment-1017057446


   > 你好,在APISIX中恐怕做不到,resty.jwt中生成的错误信息[ngx.http_time](https://github.com/SkyLothar/lua-resty-jwt/blob/master/lib/resty/jwt-validators.lua#L355) 中生成的GMT格式的[日期](https://github.com/openresty/lua-nginx-module#ngxhttp_time)
   
   好的,谢谢你


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] leslie-tsang commented on issue #6148: request help: How to modify the time zone in the error message

Posted by GitBox <gi...@apache.org>.
leslie-tsang commented on issue #6148:
URL: https://github.com/apache/apisix/issues/6148#issuecomment-1017047606


   Hello there, I afraid it can't be done in APISIX, the error message generated in [resty.jwt](
   https://github.com/SkyLothar/lua-resty-jwt/blob/master/lib/resty/jwt-validators.lua#L355)
   The date in GMT format generated in [ngx.http_time](https://github.com/openresty/lua-nginx-module#ngxhttp_time)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org