Finding the current timezone
Hi guys,
I was wondering if there is a way of knowing what is the current set timezone for a linux server.
I know that "date +%Z" gives the 3 letter abbrevation of the timezone, but then CST can be interpreted as Central Standard Time (US) and as China Standard Time.
I'm looking for a way i could tell what is the real timezone, e.g. "Asia/Jerusalem", "Europe/London", etc.
I know that i can set the timezone by symlinking /usr/share/zoneinfo/<Timezone Name> to /etc/localtime, but when i freshly install CentOS and choose my timezone, /etc/localtime isn't a symlink at all so i can't use this info...
Any ideas?
|