Questions tagged [timezone]

When using or applying a TZ value.

Filter by
Sorted by
Tagged with
123
votes
6answers
193k views

How can I have `date` output the time from a different timezone?

I have a server running with the timezone set to UTC. It seemed like that was generally a good practice (please correct me if I'm wrong). Anyhow, one of the servers I connect to, in order to scp ...
1
vote
1answer
3k views

Debugging Java program for changing timezone configuration file on Ubuntu

Here is a ruby script I wrote to change the timezone configuration on Ubuntu. I run it with jruby (a Ruby interpreter running in a JVM). require 'java' if ARGV.length == 0 puts "Usage: jruby ...
4
votes
5answers
8k views

How to make an Ubuntu time zone change stick?

I'd like to reset the timezone through editing /etc/timezone. However, after I was done editing and saved the file, the system time did not change accordingly. On the other hand, when I take ...
16
votes
6answers
10k views

How to add a custom timezone clock to an XFCE panel?

My local time is CET (Prague, EU), I also need to see UTC and, some times, MSK time. Can I add multiple clocks with different zones to a panel in XFCE? I know how to add multiple clocks, actually, but ...
2
votes
2answers
7k views

`timedatectl set-timezone` doesn't update `/etc/timezone`

I expected that timedatectl would update /etc/timezone when changing timezones, but no: % sudo timedatectl set-timezone 'Asia/Kuala_Lumpur' % cat /etc/timezone Asia/Bangkok Is there a reason that it ...
3
votes
2answers
2k views

How to fix the Brazilian daylight saving time (Summer Time) of 2018 in Olson database files?

The Brazilian Government has just issued a law that shifts the beginning of the Brazilian DST (Daylight Saving Time) locally called as Summer Time. This new DST date will come into force in the next ...
171
votes
3answers
656k views

Timezone setting in Linux [closed]

I'm setting the timezone to GMT+6 on my Linux machine by copying the zoneinfo file to /etc/localtime, but the date command is still showing the time as UTCtime-6. Can any one explain to me this ...
26
votes
4answers
16k views

Why does TZ=UTC-8 produce dates that are UTC+8?

The current time in Los Angeles is 18:05. But when I run TZ=UTC-8 date --iso=ns, I get: 2013-12-07T10:05:37,788173835+0800 The date utility tells me that the time is 10:05, and even says that it's ...
8
votes
2answers
4k views

Get current timezone as `Region/City`

Unfortunately timedatectl set-timezone doesn't update /etc/timezone. How do I get the current timezone as Region/City, eg, given: % timedatectl | grep zone Time zone: Asia/...
3
votes
1answer
7k views

What is /etc/timezone used for?

On my Manjaro linux box, I have a file /etc/timezone which contains: Asia/Bangkok Another Manjaro forum user also has the same file. That thread on the whole contains some prior art on this question....
3
votes
2answers
4k views

Set TZ according to /etc/localtime

The symlink of /etc/localtime looks like this: ===> ls -l /etc/localtime ... /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin I need this information in the environment variable TZ. This ...
13
votes
1answer
11k views

Cron job does not fire up after a timezone change

I've tried eliminating many of the common errors, ensuring that the PATHs are available for cron there is an endline at the end of crontab file the timezone is set-up by: cd /etc cp /usr/share/...
6
votes
4answers
24k views

Configure localtime. dpkg-reconfigure tzdata

I'm using this to configure localtime: dpkg-reconfigure tzdata It is ncurses interface. I'm looking for the way to programming this. Is there true way without user ncurses interface? How to ...
5
votes
1answer
484 views

How to change the timezone on CentOS 7?

Does anyone know how to change the timezone on CentOS 7?
4
votes
2answers
4k views

/etc/shadow date of last password change—UTC or local time?

man 5 shadow gives the following description of the third field in each line: The date of the last password change, expressed as the number of days since Jan 1, 1970. The value 0 has a special ...
3
votes
1answer
8k views

How to list timezones known to the system?

I would like to have a list of all the timezones in my system's zoneinfo database (note : system is a debian strecth linux) The current solution I have is : list all paths under /usr/share/zoneinfo/...
2
votes
2answers
1k views

How often is `/usr/share/zoneinfo` updated?

I'm installing the timezone tables on MySQL, which are generated from /usr/share/zoneinfo on my Debian Server. But there is a point on the notes about ensuring I keep them up to date whenever the ...