Questions tagged [time]

Questions relating to time and timezones.

Filter by
Sorted by
Tagged with
0 votes
1 answer
59 views

Ubuntu clock jumps

I've noticed that since the last update of the Ubuntu kernel (specs are below) the OS clock randomly jumps seconds. I'm using Python 3.10.12 and Ubuntu 22.04.3 LTS 6.2.0-26-GENERIC I've noticed ...
0 votes
1 answer
10 views

Marking clocksource 'tsc-early' as unstable because the skew is too large: and Time drift on ubuntu server 22.04.4 LTS

I have an Ubuntu Server with this config No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy Linux lab01 6.5.0-26-...
1 vote
1 answer
18 views

sudo timedatectl timesync-status has high jitter and offset

My Ubuntu server No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy Linux lab01 6.5.0-26-generic #26~22.04.1-Ubuntu SMP ...
1 vote
1 answer
4k views

Set date and time from http header in router with curl or wget

This technique should be similar or the same as on Ubuntu; though the following code does not work on the router. One method is the following: dateFromServer=$(curl -v --silent https://google.com/ 2&...
5 votes
2 answers
4k views

Prevent Ubuntu from changing hardware clock

I always tell people that 'nothing can go wrong' and that 'their computer won't even remember' if I boot their systems from my Ubuntu-installed pendrive, but I recently found out that this is not true....
6 votes
2 answers
5k views

Problem with timedatectl and network time synchronisation in 16.04

I have a dual-boot machine with Windows and Xubuntu 16.04. Because of Windows, the hardware clock is set to local time, so I had to use timedatectl to make Xubuntu aware of that after the upgrade to ...
41 votes
3 answers
167k views

How to stop automatic time update via terminal?

This question shows how to stop automatic time update (and switch to manual): How to stop automatic time update? I want to do this exact thing but I can only ssh onto my machine so I need to make ...
3 votes
1 answer
253 views

Why is that my ubuntu clock is not working during the time I put in sleep mode

When I set time in ubuntu it's working fine, but soon after putting in sleep mode, it's not working. Let's say the time is 3:00PM and I suspended the laptop for 2 hours. It's now 5:00PM but when the ...
102 votes
14 answers
331k views

How do you set the timezone for crontab?

I have set up ACPI wakeup so my laptop wakes up at a certain time each morning. The timezone for this is UTC. I want to set up my crontabs also using UTC so they fit with the wakeup alarm. How do ...
10 votes
2 answers
40k views

How to force an immediate clock/time synchronization/ntp update in 16.04?

It seems like the documentation at the LTS server guide and and community wiki may not have been updated for 16.04 yet. A figure in in the community wiki page shows a 'synchronize now' button but I ...
1 vote
1 answer
101 views

Change Date & Time Formatting [duplicate]

I am used to XFCE in various distributions, but thought I would try Ubuntu with GNOME for a change and to understand why so many people use it. Frustratingly, I cannot find out how to change the date ...
15 votes
2 answers
11k views

How can I change the date and time format in GNOME Shell's top bar?

I'm using Ubuntu 20.04 LTS. I want date and time in GNOME Shell's top bar to have the following format: Sun Jun 13 07:26AM IST 2021 instead of the current: Jun 13 12:53 PM How can I achieve this?
0 votes
2 answers
5k views

Should I reboot after set new timezone using timedatectl

I am on a 1604 system with timezone A, after I set the timezone to B using timedatectl set-timezone B, everything work fine.('timedatectl status' is B, 'date' command showing the right time, file time ...
16 votes
4 answers
43k views

Ubuntu server 20.04 - time format 24 hours on shell with date command

I've installed Ubuntu server 20.04, and I can't find a way to display the time format to 24 hours when I use the command 'date' in the shell. I check the locale information with an Ubuntu server 18.04 ...
3 votes
1 answer
5k views

Stop Time Sync Between Host and Guest - VirtualBox

So I've been googling and I've tried the following commands. I want to stop the virtual machine from having the correct time and just to stick with what time it last recorded. The host operating ...
0 votes
1 answer
9k views

systemd-timesyncd.service won't start

● systemd-timesyncd.service - Network Time Synchronization Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) ...
13 votes
2 answers
2k views

Announce the time on the hour?

On the mac there is a feature which allows you to get your computer to verbally announce the time on the hour, is there something similar on Ubuntu? That is is there a package which already does this ...
0 votes
1 answer
56 views

How to change style and language of timezone

Ubuntu 23.10 How one to change the STYLE of timezone? I live in Ukraine, however I do prefer an English version of the system. But, my date is in Ukrainian language, what is somewhat out of place. e.g....
47 votes
9 answers
162k views

Enable System clock synchronization

'timedatectl' is giving following output - Local time: Wed 2018-06-13 18:08:51 IST Universal time: Wed 2018-06-13 12:38:51 UTC RTC ...
58 votes
8 answers
29k views

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 ...
1 vote
0 answers
50 views

Assigning a certain amount of CPU power to a script

I use the time command in a script to calculate the runtime. But sometimes gzip -4 file is done in less time than gzip -1 file Why is this happening؟ How can I make the CPU power level the same at ...
0 votes
0 answers
39 views

How can I let the file date be formatted according to ISO 8601 also in load/store dialogues

I am using Xubuntu 22.04. I have added a line alias date='date -Iseconds' to /etc/bash.bashrc in order to let file dates be formatted according to ISO 8601 (YYYY-MM-DDThh:mm:ss) Further I have ...
1 vote
1 answer
497 views

Time is reset on boot

I am running Ubuntu Server 22.04 LTS (not dual-boot). I have chrony for ntp. Every time I boot the machine, the date is reset to the same time, about a month in the past. This occurs regardless of ...
1 vote
0 answers
213 views

Manually set system time while NTP sync is on

I have a computer without internet connection and I would like to manually set the system time. I've tried running timedatectl set-time, but I get Failed to set time: Automatic time synchronization is ...
84 votes
8 answers
223k views

How to fix wrong system time and date?

I just ran a clean install of 12.10 on my sys76 laptop. Time and date reads: 19:36 31 december 1969, even though it is: 13:29 07 november 2012. I have it set for my location and it won't change ...
2 votes
2 answers
1k views

How to remove the "Add World Clock" in the notification area?

I'm on Ubuntu 20.10 and in this update, the events show at the bottom of the calendar along with the add world clock option as in the screenshot below. I know this got here because of I installed &...
0 votes
1 answer
102 views

System date on laptop resume set in the future

I have an HP 15-EF2XXXX series laptop with Ubuntu 22.04.3 LTS installed. The laptop works great in all regards, considering the cheap build quality. However, at the end of the day I suspend the OS by ...
-1 votes
1 answer
124 views

Repeated incorrect time in Multipass clients with Ubuntu 22.04

I am using Ubuntu 22.04 LTS and installed Multipass to quickly bootstrap small Ubuntu VMs for testing. However, these VMs consistently show a strong time drift, and do not sync with the host OS (which ...
0 votes
1 answer
276 views

System display time is out of sync with specified install time on Ubuntu 22.04.02 LTS install

On installing Ununtu 22.04.02 LTS from a USB key on to an HP Pavilion Laptop. I have encountered the following problem: When I run sudo apt update && sudo apt upgrade -y I get: E: Release file ...
2 votes
1 answer
3k views

NTP port is blocked. How to sync time? - 18.04

My server provider blocked NTP port because they said there was an NTP attack. Now I cannot sync date and time in my ubuntu 18.04 server. How can I sync time? This is ntpdate -q 0.pool.ntp.org result: ...
1 vote
1 answer
341 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 ...
2 votes
1 answer
13k views

No time synchronization on Ubuntu 20.04

the time-synchronization does not work on my Ubuntu 20.04 (it always shows a time two hours ahead of the actual time). I have tried to follow the hints here and here but without success. I have ...
0 votes
0 answers
71 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 ...
2 votes
0 answers
178 views

System time changes by 5½ hours after being suspended for a while

Every time I open my System(Ubuntu 22.04) from suspend, the system time is wrong, exactly by 5½ hours and this time is 11 hours ahead of GMT. For example, if the correct time is 3:30 PM, it shows 9:00 ...
212 votes
12 answers
423k views

What is the command to update time and date from internet

What is the command to update time and date from Internet? Is there any application that allows me to do so from its user interface rather than from the shell?
1 vote
1 answer
2k views

Time does not sync

I have set time to sync with Internet servers in "Time and Date Settings". No error shown there. However time does bot sync and is off by several days. systemctl status systemd-timesyncd ...
0 votes
0 answers
116 views

How do I change my locale?

I am using Ubuntu 22.04 LTS Desktop version and i need help regarding formatting of locale. In short I need help on creating a locale that fits my needs as so: date should be given as: Monday, 24th ...
0 votes
0 answers
104 views

How can I change my 'Modified — Time' column within GNOME Files in Ubuntu to show files in YYYY-MM-DD HH:MM format?

GNOME Files within Ubuntu 22.04 displays file modification times in 3 different formats (see image below). I would love to get all of these entries (or at least the day/month/year entries) to use YYYY-...
0 votes
0 answers
145 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
2k 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 ...
177 votes
7 answers
604k views

How can I display the current time & date setting?

How can I display the current time configuration, like the time zone, in Ubuntu?
17 votes
4 answers
3k views

How to find the total time I spent on my laptop in this year?

I am interested in knowing the total time I spend working on my laptop in 2016. last reboot --since 2016-01-01 --until 2016-12-31 | grep -o '(.*)' | grep -v '-' gives me the total uptime of the ...
11 votes
1 answer
68k views

How to tell Ubuntu that hardware clock is local time?

How to tell Ubuntu that hardware clock is local time? This command didn't help: timedatectl set-local-rtc 1
6 votes
3 answers
3k views

How can I make Ubuntu automatically detect the correct timezone based on my internet connection?

My default location is GMT+1. I would like Ubuntu to automatically change my default timezone based on the timezone of my connected internet connection. Example: When I am in Portugal, and ...
3 votes
2 answers
2k 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 ...
1 vote
1 answer
500 views

How do I turn off DST (Daylight Saving Time)?

How do I turn off DST (Daylight Saving Time)? Iran has abandoned DST altogether, but old Ubuntus still think DST is needed. I want to turn off DST and fix the timezone on +0330. I like to do this with ...
2 votes
1 answer
155 views

System clock seems off by -2m11.785152258s, which can prevent network connectivity

I have a server that was syncing a bsc full node, and all of a sudden my system clock went off by 2 minutes. Could it be a hardware problem? OS: Ubuntu 22.04.2 LTS x86_64 ❯ timedatectl status ...
2 votes
2 answers
287 views

How to separate language from time format?

I want to set a custom time format or the time format specific to my localisation but I want to keep the names of days and months in English. How can I set it to something like YYYY-MM-DD, Monday, 20:...
1 vote
1 answer
355 views

Command `date` and `hwclock` mismatches

When I run the command date it returns my local time: qua 22 mar 2023 14:02:33 -03 When I run the command date -u it returns London time (UTC-00).: qua 22 mar 2023 17:03:08 UTC Now, when I run the ...
0 votes
1 answer
255 views

Time keeps reverting to incorrect UTC and Local time on boot, however BIOS is always correct

My correct time is UTC -5. I can modify by sudo ntpdate ntp.uiuc.edu and it fixes the time, but reverts to incorrect time again on next boot. Regardless of what I set time zone to, it does not persist ...

1
2 3 4 5
12