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'
子曰:“君子食无求饱,居无求安,敏于事而慎于言,就有道而正焉,可谓好学也已。”