Time of watermark text {date} is not correct showing, how to configure timezone in document server?

NextCloud 19.0.2 snap + Onlyoffice apps 5.0.0 + Community Document Server 0.17

提供一个方法修改nextcloud onlyoffce 插件包,路径onlyoffice\lib\Controller\EditorApiController.php

中行 827(版本7.5.0): “date” => (new \DateTime())->format(“Y-m-d H:i:s”),为

“date” => (new \DateTime())->setTimezone(new \DateTimeZone(‘Asia/Shanghai’))->format(“Y-m-d H:i:s”),

'Asia/Shanghai’替换为你当地的时区