Timestamps of review comments in Okular have incorrect time zone

The time zone setting of the Linux system cannot be recognized by Okular, which makes the timestamps of review comments fall back to UTC+0. To remedy this problem, we should firstly check the time zone information in the system.

$ date -R
Thu, 30 Dec 2021 10:22:24 +0800

It is +0800, which is correct.

Next, check the file target pointed by the symbolic link /etc/localtime.

$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 Nov 24 11:10 /etc/localtime -> /usr/share/zoneinfo/Asia/Shanghai

Then, export the environment variable TZ with the value Asia/Shanghai in ~/.bashrc. This setting can be accepted by Okular.

export TZ='Asia/Shanghai'
posted @ 2021-12-30 11:42  皮波迪先生  阅读(41)  评论(0编辑  收藏  举报