Questions tagged [timezone]

Time zones are areas on Earth that have the same time. Use this tag if you have problems setting up your timezone in Ubuntu.

The Earth is divided into 24 time zones - each with it's own time. Every time zone theoretically occupies 15° of the Earth's longitude, although, in practice, time zones vary due to country borders.

The times for the time zones are based on the Universal Coordinated Time (UTC, which used to be called Greenwich Mean Time, GMT).

Every time zone to the east of Greenwich,UK adds 1 hour to UTC, and every time zone to the west 1 hour from UTC.

144 questions
400
votes
6 answers

Clock time is off on dual boot

Dual boot system Windows XP Pro and Ubuntu 12.04. I have the bios set for the correct time and Ubuntu set for US Eastern time. Ubuntu will boot up and the time will be off by -4 hours. If I correct the time in Ubuntu then when I boot up in Windows…
Bill Walden
  • 4,001
328
votes
10 answers

How to change time-zone settings from the command line

I have a virtual machine that is set to PST that a couple of colleagues have in different time-zones. If I wanted to change the time-zone to EST and GMT, what do I need to do?
manyxcxi
  • 3,571
243
votes
8 answers

Setting timezone from terminal

I want to change the timezone of the system clock from the terminal. This can be done with tzselect "which opens a gui in terminal" or sudo cp /usr/share/zoneinfo/Europe/London /etc/localtime "which will set to gmt" But is there a way to set time…
user2155009
  • 2,531
163
votes
7 answers

How do I change my timezone to UTC/GMT?

Currently when I execute the date command from bash I get the following displayed Thu May 17 12:21:00 IST 2012 Below is my timezone config based on executing dpkg-reconfigure tzdata Current default time zone: 'Europe/Dublin' Local time is now:…
dmckenna
  • 1,733
58
votes
8 answers

Clocks for multiple timezones in GNOME Shell

I looked everywhere but I couldn't find a way to display multiple clocks in GNOME 3. In classic GNOME and Unity, it is possible. Also, for some strange reason, additional timezones cannot be added to the clock using the time-date applet in classic…
Ayan Kar
  • 581
48
votes
1 answer

How to check computer's timezone through Terminal?

I am writing a bash script which at some point needs to determine a user's timezone, so how exactly can I check the timezone in Terminal? I would like to be able to get output in terms of GMT and UTC. Though if I can get the output in terms of any…
user364819
40
votes
2 answers

Auto Timezone doesn't update

[Running Ubuntu Gnome 15.10] I recently brought my computer from PST to EST in North America. Once in EST my laptop did not update the timezone. I tried toggling the "Auto Time Zone" switch which had no effect. Finally, I rebooted the machine…
labarna
  • 2,632
35
votes
2 answers

NTP not supported

In Ubuntu 20.04, I see that I can not change the set-ntp due to the following error. # timedatectl set-ntp true Failed to set ntp: NTP not supported Any way to fix that? UPDATE: It seems that systemd-timesyncd fails with the start command. $…
mahmood
  • 1,905
19
votes
1 answer

Ubuntu 19.10 Multiple Timezone clocks

How do I add multiple clocks with different time zones in Ubuntu 19.10. Solution: Install clock using sudo apt install gnome-clocks Open Clock app and add required timezones Restart the PC Important: Do not install using snap or using software…
12
votes
1 answer

timedatectl: command not found

The scenario: I'm trying to set timezone on a docker container based on Ubuntu 18.04 docker image. Just pull the image and updated > apt-get -y update The error: When run > timedatectl I get > timedatectl: command not found The question: How to…
10
votes
1 answer

how to read time zone information

I was looking at some book of system programming. It mentioned to use a variable TZ with a colon separated list which is used from /usr/share/zoneinfo. Probably the book is a bit outdated. I checked on my Ubuntu system /usr/share/zoneinfo/Asia$…
10
votes
2 answers

timedatectl: Failed to create bus connection: No such file or directory

The scenario: I'm trying to set timezone on a docker container based on Ubuntu 18.04 docker image. Just pull the image, updated, and installed systemd > apt-get -y update > apt-get -y install systemd The error: Failed to create bus connection: No…
9
votes
1 answer

Installing Roundcube Web Server, gave date and time error while checking PHP configuration

Installing Roundcube Web Server, gave date and time error while checking PHP configuration. I am trying to configure the webamil using roundcube. Below is the details. pop / smtp service is working fine on my mail server. Able to send and receive…
Hrish
  • 2,399
7
votes
1 answer

Why /var/log/auth.log is using diffrent timezone?

I've installed fail2ban on a Ubuntu box (14.04) but it didn't work correctly. As I tried to inspect the reason, I discovered that the timezone which is being used by the /var/log/auth.log file is different from the system timezone. Here were what I…
Minh Danh
  • 454
7
votes
1 answer

Timezone getting set wrong in WSL?

Running Ubuntu in WSL2 my clock is getting screwed up somehow. And when I try to set it again using: sudo dpkg-reconfigure tzdata It still gets set about an hour behind the real time. The screenshot shows the real current time in Windows, and also…
1
2 3
9 10