License Central webdepot(License Portal) 配置时区

Lars Møller avatar

WIBU

2023-09-11

要调整License Central webdepot的时区,找到global_config.inc.php文件。确认LC服务器时区为Asia/Shanghai。更改LC_TIMEZONE设置项从"CET"到"PRC"。保存后重启LC和webdepot服务。

License Central webdepot(License Portal) 时区的配置,是在 webdepot 的配置文件(global_config.inc.php)中设置的。
如果用的是LC中自带的webdepot,则该文件位于 /var/www/LicenseCentral/public/webdepot/conf
如果是自行部署的webdepot,则该文件位于 ./conf 中
进行设置前,请确保LC服务器时区设置为 Asia/Shanghai,并且时间正确。
打开 global_config.inc.php 文件,找到如下配置:
// Workaround for non-UTC date in CodeMeter License Central // Timezone of LC define("LC_TIMEZONE", "CET"); // Set default time zone of WebDepot date_default_timezone_set("UTC");
将第一个配置中的CET更改为 PRC, 后一个配置中改为 UTC,修改完成后,此处应如下所示:
// Workaround for non-UTC date in CodeMeter License Central // Timezone of LC define("LC_TIMEZONE", "PRC"); // Set default time zone of WebDepot date_default_timezone_set("UTC");
保存修改,并重启LC以及webdepot服务即可。
免费试用
0