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.
129
questions
0
votes
1
answer
69
views
Why Cronjobs Run According to UTC Time?
I am in Singapore and the server (Ubuntu 22.04 EC2 instance) is set according to the my local timezone (UTC+8H), at least so the date command tells me.
$ date
Wed Sep 20 09:07:42 +08 2023
Is this a ...
-3
votes
0
answers
34
views
I want to solve this problem that I face a lot in parrot os [closed]
└──╼ $sudo apt install systemd-timesyncd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you ...
0
votes
0
answers
28
views
What organization(s) manage the /etc/ssh/sshd_config file?
I've looked on several systems and seen these lines
111 # Allow client to pass locale environment variables
112 AcceptEnv LANG LC_*
in the /etc/ssh/sshd_config file.
I'd like to get this ...
0
votes
0
answers
32
views
Time incorrect after suspending
Before I close the lid of the Ubuntu 23.04 laptop, for example the time is 12:34. When I open the lid, the time becomes X hours faster than the correct time.
My timezone is UTC+X and I ran timedatectl ...
0
votes
0
answers
56
views
How do you prevent openvpn clients from changing the system clock?
I'm using state based routing using iptables and a single user on a shared machine sometimes uses a VPN to get resources not available in our physical location. However, this is very annoying because, ...
1
vote
2
answers
1k
views
Mexico NTP (no more time changes since 2023) and my NTP server
I have a NTP server (Ubuntu) that actually have a Time Zone of America/Mexico_City, until 2022 we have had 2 time changes a year, most Americans spring forward (turn clocks ahead and lose an hour) on ...
1
vote
0
answers
147
views
Ubuntu 22.04 Auto Timezone is wrong
My location service setting is on, and I can get my correct location on Google Maps.
But when I turn on auto timezone, it will set the timezone from PST to MST, and I am not even near any MST region.
...
3
votes
2
answers
207
views
Run cronjobs in different timezones
I have some cronjobs that I want to run. I want two of my scripts to run in UTC and the rest in CET. I have tried with cron_tz but it does not seem to work.
0
votes
1
answer
502
views
Set MySQL default-time-zone to Europe/Berlin results to MySQL crash
I'm running a VPS with Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0 x86_64) and MySQL 5.7.40.
Until now I always took the following steps to setup the right time zone for MySQL on a new server:
First: sudo ...
2
votes
0
answers
975
views
Ubuntu 20.04 Wrong UTC time
On my Ubuntu server, the time should be UTC+3, but the UTC time zone is 3 hours ahead, and whenever I enter my own time zone, date showing 3+3 6 hours ahead in total. So the UTC timezone is showing ...
0
votes
1
answer
37
views
Where are time zone zic source files managed?
There are numerous errors in the historical transitions in /usr/share/zoneinfo/America/Asuncion tz file.
Transitions are incorrectly computed from around 2006 forward through 2038 as happening in ...
0
votes
0
answers
27
views
where do I go to report an issue with "Date & Time"? [duplicate]
I recently had to change time zone on my computer. I'm in Solomon Islands, where the capital city is Honiara. I selected "Pacific" as the "Region", and searched the "City"...
0
votes
0
answers
123
views
Setting timezone Interactively in installation via subiquity
Is there a way to select timezone interactively in installation via subiquity?
I'm aware of 'interactive-sections' under which we can set options to select locale and keyboard layouts during setup. ...
0
votes
0
answers
404
views
Ubuntu 22 Display localtime instead of universal time
I want to display local timezone instead of Universal time in Ubuntu 22.04.1 LTS. It also displays same UTC +00 in all regional timezone. I did set time timezone manually nothing works.
sudo ...
0
votes
1
answer
1k
views
I manually changed the time in the GUI. Now, my system clock is not synchronized. How can I fix this?
As the title says, my system clock is not synchronized. This is problematic since I need to update my software, and I continue to receive errors such as "Release file ... is not valid yet." ...
0
votes
0
answers
515
views
timedatectl not returning the right info
I have 2 servers running the exact same Ubuntu and kernel versions. Both have identical HW and have been booted with the same USB drive.
user@server1:~$ cat /etc/os-release
NAME="Ubuntu"
...
3
votes
1
answer
6k
views
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 ...
1
vote
0
answers
232
views
20.04 MATE desktop - clock in panel occasionally shows UTC
Testing a newly upgraded Ubuntu 20.04 system with the MATE desktop installed.
The panel clock normally shows the desired US Central Time. But every now and then it sneakily reverts to UTC - This ...
0
votes
1
answer
430
views
zone.tab file has disappeared causing the timezone to default to UTC
For whatever reason, the time on my Xubuntu 21.04 system has gone all awry and has defaulted to UTC. I cannot change the time as the time-admin program refuses to load with this error:
** (time-admin:...
1
vote
0
answers
47
views
Can I display UTC offset rather than local offset in the desktop calendar applet?
I have configured some world clocks in the Gnome Clocks application, and they appear on the Ubuntu desktop calendar as expected, see below. (I don't know the correct name for the "desktop ...
-2
votes
1
answer
60
views
Golang: timestamp add not working
the task is this, I need to add 5 minutes to the timestamp, but whatever I do, the time does not change, what am I doing wrong?
Example: https://play.golang.org/p/AavonfZk2bn
-2
votes
1
answer
1k
views
How to change the UTC time in Ubuntu [closed]
How to change my UTC time as similar to my local time? The local time and RTC time displays the correct time, but UTC time is wrong and my DB and code chooses the UTC time. So how to change the ...
3
votes
1
answer
820
views
How to have Clock widgets with multiple timezones
I need to have time in multiple timezone displayed either on the top-bar or as a widget on secondary monitor
I'm currently using Gnome clock which requires as click on top bar and times on different ...
2
votes
1
answer
127
views
Display accurate timezone
$ date
Tue 25 May 2021 12:31:56 PM CST
$ systemctl list-timers
NEXT LEFT LAST PASSED UNIT ACTIVATES
Tue 2021-05-25 ...
0
votes
0
answers
42
views
Time Zone changed incorrectly on random boots
A few days ago my system time zone started to be changed **incorrectly on random boots, from:
BST (London, United Kingdom)
to
GMT (Accra, Ghana)
I can correct this with:
$ timedatectl set-timezone ...
29
votes
2
answers
72k
views
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-...
1
vote
1
answer
283
views
PT/PST was not taken on 20.04 as valid timezone
Used the following command to change timezone on 20.04:
sudo timedatctl set-timezone PST //PT has same error
But receiving error of invalid time zone or missing (strange!).
Did the following:
sudo ...
1
vote
2
answers
2k
views
Incorrect time shown in 20.04
I see that the time in my Ubuntu 20.04 (12:40 PM) is different from my wall clock and also the www.timeanddate.com web site (12:20 PM). As you can see int he picture, the time zones are correct. How ...
1
vote
0
answers
516
views
crontab with per-user timezones
Following up on How do you set the timezone for crontab?, where CentOS 7 distro with cronie 1.4 has CRON_TZ environment variable, but Ubuntu 20.04 LTS' crontab(5) manpage still doesn't have CRON_TZ. ...
2
votes
1
answer
555
views
How do I solve Internet Time Sync Not Happening?
Searched through some places and did a lot of stuff. I have tried Unable to start ntpd.service, How do I set time and date from the Internet? and also tried chrony.
I saw more places, as far as I ...
2
votes
0
answers
476
views
How can I change the timezone on a read only operating system protected by overlayroot?
I have an Ubuntu 16.04 installation mounted using overlayroot as a read only partition.
I also have a read write partition on the same drive.
I need to be able to change the timezone setting of the PC ...
5
votes
1
answer
8k
views
Time change in Windows after booting to Ubuntu [duplicate]
Whenever I boot to Ubuntu and boot into Windows again my time changes to GMT. Why is this and how can I fix this?
0
votes
1
answer
936
views
Installed PHP I need to Get write the timezone
I have a problem regarding the timezone in Ubuntu. It's asking for the timezone and I don't know what to do.
0
votes
0
answers
975
views
Time is behind by an hour even though TZ is correctly set
I have an Ubuntu 18 server VM running in ESXI. The timezone is set correctly but the time is still behind by an hour.
root@devserver:~# timedatectl
Local time: Thu 2020-03-19 ...
1
vote
0
answers
176
views
18.04 NVIDIA drivers repeatedly uninstalls in dual boot system after running Windows
I have a really weird situation on a dual boot (Windows 10 & Ubuntu 18.04) system.
Sometimes when I make changes in Windows then return to Ubuntu, I find the graphic card (a Titan GTX) is ...
2
votes
3
answers
13k
views
Timezone Asia/Kolkata changed to PST
What I did:
Ran this command:
sudo cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
What happened:
My local time changed to PST. Now I ran:
sudo cp /usr/share/zoneinfo/Asia/Kolkata /etc/...
9
votes
2
answers
26k
views
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 ...
9
votes
1
answer
57k
views
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 ...
1
vote
1
answer
103
views
Commandline tool to lookup current timezone? [duplicate]
I have my date and time settings set to use the "automatic time zone" and that is reflected in timedatectl:
amanda@rajje:~$ timedatectl status
Local time: Fri 2019-11-15 14:01:...
0
votes
1
answer
331
views
date command output format
I have just installed ubuntu server 19.10. When I enter the date command I get the following output
Sun 10 Nov 2019 05:16:05 PM AEDT
My old server running 18.04 gives this output
Sun Nov 10 17:...
3
votes
2
answers
1k
views
Timezone changes do not persist
I am running Ubuntu 18.04.3 and changes I make to the timezone do not persist. That is, I make the change and at some point within 5-20 minutes, the clock reverts to UTC time.
I have updated the ...
3
votes
1
answer
2k
views
Clock resets To UTC on Reboot
I've newly installed Ubuntu 18.04.3 on two hosts, desktop on one, server on another. The timezone on the server resets to UTC on each boot.
# cat /etc/timezone
America/Los_Angeles
# ls -la /etc/...
0
votes
1
answer
129
views
timedatectl without using named zone
The typical way to set the timezone is to use timedatectl, e.g.:
sudo timedatectl set-timezone America/New_York
So I can use a named zone, or UTC.
But how do I set the zone without a name - e.g. ...
1
vote
1
answer
2k
views
Ubuntu 18.04 Desktop - date and time synchronization issue
I did a clean install of Ubuntu 18.04 LTS on my laptop a couple of days back. During installation, I chose the timezone to be my local time zone i.e., Kolkata, India (Indian Standard Time). However, ...
0
votes
1
answer
907
views
xfce: How to get bottom panel (back). How to update time in the upper right corner
Somehow the bottom panel isn't switched on by default. I am talking about the one you see in following picture (mouse cursor is hovering right above):
I've switched the time zone. However, the time ...
1
vote
0
answers
6k
views
Enable/disable Daylight Savings Time through command line
Note: By "Disable" daylight savings time, I mean for the system clock to ignore any time changes for daylight savings time (ie, if DST is disabled, then the clock will not "spring forward" an hour in ...
4
votes
1
answer
3k
views
Add/change timezone on Ubuntu Minimal 18.04
I have an instance running Ubuntu Minimal 18.04 LTS on Google Cloud.
I want to change the system timezone, but timedatectl list-timezones shows only UTC, so timedatectl set-timezone <timezone> ...
0
votes
1
answer
727
views
Ubuntu Core 16 - How to change time zone persistent?
to set the time zone I tried following:
auser@localhost:~$ sudo timedatectl
Local time: Fri 2019-05-17 06:46:14 UTC
Universal time: Fri 2019-05-17 06:46:14 UTC
RTC time: Fri 2019-05-...
1
vote
0
answers
631
views
Time Zone shows (null) with UTC+0 offsets on all timezones
I'm new to Linux and I'm having an issue with my clock showing the wrong time. When I pull up the Date & Time setting, my Time Zone shows
(null) (Los Angeles, United States)
If I turn off ...
0
votes
2
answers
1k
views
Timezone can't be changed
I am trying to fix an error in my timezone config on Ubuntu 18.04. When I go to the Date & Time control panel, no matter where on the map I click, it always says MDT (UTC-06).
Also did the ...