|
我这里O2OA采用docker 部署的。参考的是 https://github.com/hefanbo/o2oa-docker 宿主机系统是 centos 7.
现在进入O2OA container以后,运行date,显示的时区正确,如下所示。
root@486c220757c5:/opt# dateThu Apr 16 16:42:14 CST 2020但是运行 start_linux.sh 以后,然后依次运行各个模块的时候,日志中显示的时间还是UTC时间。如下所示(我是北京时间下午16点多运行的,日志显示上午8点多)
最终结果会导致创建流程表单的时候,拟稿时间显示错误。用的时UTC时间,而不是北京时间。
>>> server directory:/opt/o2server >>> version:20200110145143......start storage***************************************** storage server start completed.* port: 20040.****************************************start center2020-04-16 08:33:36.778 PRINT [main] com.x.program.center.Context - com.x.base.core.project.x_program_center loading datas, entity size:22.Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.Apr 16, 2020 8:33:39 AM com.alibaba.druid.pool.DruidDataSource info
我注意到 http://o2oa.net/x_desktop/forum.html?app=ForumDocument&id=37ff8c4a-22d4-4a61-9174-094ced21d835 也提到过。现象跟我这里基本一样。
我的后台数据库是mysql。时间也设置正确了, select now(); 显示北京时间。但是我觉得应该跟mysql没有关系。
mysql> select now();+---------------------+| now() |+---------------------+| 2020-04-16 16:54:11 |+---------------------+1 row in set (0.00 sec)
重启工作也都做过多次。包括 mysql, o2oa。
是不是我的O2OA的配置文件,例如 node_xxx.json 之类的设置问题? |
|