Questions tagged [time]

Questions relating to time and timezones.

Filter by
Sorted by
Tagged with
0 votes
0 answers
199 views

Unit & magnitude of NTP / ntpdate

I have a cluster of 10 virtualized ubuntu servers. For all of them, I installed the ntp-Daemon. Since I currently running some time sensitive experiments, I am interested in the offsets between my ...
moosehead42's user avatar
5 votes
1 answer
10k 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 ...
J. Scott Elblein's user avatar
0 votes
0 answers
148 views

Ubuntu keeps on using internet time instead of RTC time

How do I make Ubuntu use the RTC time as the operating system time instead of waiting for my internet to connect to update the time? When my PC wakes from the sleep state, Ubuntu displays the old time ...
anonymous's user avatar
0 votes
0 answers
126 views

Two letter abbreviated weekday name

Running $ date produces Mo 15 Nov 2021 18:02:27 CET. Apparently the standard weekday name should have three letters, i.e. Mon in this case, and it is causing some problems with one software I'm using. ...
tom's user avatar
  • 73
1 vote
1 answer
915 views

Cannot modify, create files/ folder in HDD with Ubuntu and Windows running on same SSD in PC

To introduce myself, I'm new to Linux and have a passion to work with Linux rather than Windows10. I bought a New-PC Pre-installed with Windows 10 on SSD. Installed Ubuntu to the same SSD as Dual Boot ...
Mathi UV's user avatar
1 vote
1 answer
1k views

NTP Configuration not being used

I am trying to set up a GPS NTP server on my SBC running Ubuntu 20.04 (headless) but I am having a configuration issue. When I reboot I get this: $ ntpq -p remote refid st t when ...
Zach's user avatar
  • 178
0 votes
2 answers
576 views

Which file operations trigger directory modification time and date to change?

I have a directory named IT-documentation. Using ls -l in the terminal at its parent directory level yields (among numerous other lines) drwxr-xr-x 16 robin robin 4096 Oct 31 08:02 IT-documentation ...
robin's user avatar
  • 1
2 votes
0 answers
3k views

Wrong system time when NTP is enabled?

I am running Ubuntu 20.04 on my laptop. Ever since the installation I have never had any problems with the date/time going out of sync. But today when I started the laptop the system time was ...
david.mihola's user avatar
0 votes
1 answer
542 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:...
islandmonkey's user avatar
0 votes
1 answer
78 views

ubuntu time glitch [duplicate]

Running 20.04lts on gateway e-475m laptop, dual boot with win7, and 'use internet to set clock' is OFF for both OS's (reason will become obvious...), and my bios clock is set for local time. For win7 ...
The MAJOR's user avatar
0 votes
0 answers
218 views

Time change after suspension

After I on my laptop after suspending, the time automatically changes and shows a wrong time. But once I restart and boot back it gets normal until I suspend again. I use a HP pavilion, with ubuntu ...
Rahul M's user avatar
  • 65
1 vote
0 answers
64 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 ...
lofidevops's user avatar
  • 20.9k
-2 votes
1 answer
2k views

How to add 15 or 30 or 60 minutes to the time 15:00 PM..?

#!/bin/bash #the vm shutdown tag tag="15:00 PM" #the "/usr/bin/input_azureuser.log" file contains snooze data in minutes #snooze_time values will be "15,30 or 60" ...
Haridvpsk's user avatar
4 votes
1 answer
918 views

How can I display two different time zones at the very top where there is only one now?

I work remotely for a company 16 hours ahead so would like both dates and times at the top if possible. Is there any way without opening an app or a dropdown box? Just always displaying at the top. ...
mLstudent33's user avatar
1 vote
1 answer
3k views

timedatectl on ubuntu server 20.04

I have an ubuntu server (20.04) where timedatectl is failing to set the timezone. On the first call, it always fails, on the second it thinks it has succeeded but actually it hasn't: Beforehand the ...
Max Murphy's user avatar
1 vote
3 answers
17k views

Why is the time not syncing?

I want the time to sync, but it's not. I tried running the following commands, but it's still not syncing. # timedatectl set-ntp off # timedatectl set-ntp on # timedatectl status ...
Rucent88's user avatar
  • 1,968
3 votes
1 answer
2k views

How to make date show day/month/year in numbers instead of letters and words?

At the moment, this is how the date and clock looks like in Ubuntu's top bar: In Estonian, "R" stands for "Reede" or "Friday", and "Juuli" means "July&...
shook_one's user avatar
  • 289
1 vote
0 answers
158 views

where to find an example png file which has date and time metadata that eye-of-gnome (eog) shows

I'm using xubuntu 20.04 and have installed the eye-of-gnome (eog) on it. The version of eog is GNOME Image Viewer 3.36.3 On the right side of the eog window (which is called "Image Viewer") ...
dan's user avatar
  • 45
0 votes
1 answer
413 views

gpsd and chrony single gps pps setup

I have a system that will be offline most of the time. I have gpsd and chrony setup, and am able to share gps and pps with chrony via the shared memory. my goal is to make sure the server can share ...
Linux-dev's user avatar
0 votes
1 answer
234 views

Get remotetime via commandline, set it to local clock with TZ

I was experimenting with the clock. Changed it on local box. After that, Google and other SSL websites stopped working so I was not able to get the exact local time (I don't wear a watch). Luckily, ...
tgkprog's user avatar
  • 555
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?
sivasdpi's user avatar
  • 213
0 votes
0 answers
430 views

Setting time with date and hwclock does not permanently set the time

I'm running these: ~$ sudo date --set="2021-06-09 16:33:50.0" Wed Jun 9 16:33:50 UTC 2021 ~$ sudo hwclock --systohc once the system is rebooted it loses the info and its 4 hours off. This ...
bluesquare's user avatar
0 votes
0 answers
2k views

Universal Time different from RTC time in timedatectl

As you can see in below, my Universal Time different from RTC time. It has 5 seconds later. My current Date is also 5 seconds later than real time. How can I fix it. I don't want to install ntpd or ...
Majid Hajibaba's user avatar
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 &...
Heisenberg's user avatar
  • 1,626
1 vote
0 answers
1k views

systemd-timesyncd service

I am have mentioned an IP in /etc/systemd/timesyncd.conf as NTP=192.168.1.180 and restarted the service through following command systemctl restart systemd-timesyncd but I time isn't syncing with ...
Balaji Venkatesh Kalakund's user avatar
1 vote
0 answers
7k views

Failed to set ntp: NTP not supported

Mu Ubuntu 20.04 suffers from time synchronisation problems. Particularly: v@v-VirtualBox:~$ timedatectl Local time: Sat 2021-05-01 09:30:44 EEST Universal time: Sat 2021-05-...
Viesturs's user avatar
  • 652
1 vote
2 answers
7k views

Why does local time reset itself to wrong time after "timedatectl set-time"?

I have a server (Ubuntu 20.04) with an asynchronous time (wrong by around 7.5 minutes; RTC already seems to be equal/close to the "real" time) which I want to correct: timedatectl ...
KatharinaSt's user avatar
0 votes
0 answers
54 views

Time in top bar with applications in Ubuntu 20.04.2 LTS

In my desktop, the top bar has the file through help menus for the current application, but I have to click the windows key to show the time etc on top. Is there a way to show that top bar with the ...
John Targaryen's user avatar
0 votes
1 answer
1k views

How to find out which NTP (Network Time Protocol) is configured on Linux-ubuntu

I'm working on ubuntu where i want see which NTP is used as default, ex. chrony! and if its even configured for the purpose of correct time synchronisation in a cluster of another app. So How can i ...
k.jbaili's user avatar
  • 129
0 votes
1 answer
244 views

Clock time off on dualboot

so i got windows 10 pro and ubuntu 20.04.2 lts on my dell latitude e5450. When i boot to ubuntu, then restart to windows 10, the time is wrong. It changes the bios time to +4 hours from now (UTC).
Nimmam's user avatar
  • 3
0 votes
1 answer
138 views

accessing the GUI date/time setter programmatically

I'm maintaining a turnkey application. The customer has requested a date/time setter which would allow the user to set time, date, and time zone. (Evidently, some of our units will be going into ...
mzimmers's user avatar
  • 101
0 votes
0 answers
53 views

Hard drive failing only on Sunday morning

A couple of weeks ago I started to have a problem with my HDD in my system failing to mount during boot. My system is set up to boot the root partition, / , from an SSD them boot /home from an HDD. ...
Benjamin1029's user avatar
1 vote
0 answers
27 views

Why is the time in ubuntu different from that in windows? [duplicate]

I recently installed ubuntu 20.04 alongside Windows 10 in dual-boot and when I was working with these two operating systems, I understood that the time in ubuntu is not the same as the time in windows....
Amir Mohsen's user avatar
2 votes
1 answer
1k views

Does ubuntu OS time settings update with daylight savings?

We use ubuntu docker containers in production. We need to ensure, that time(time.Now().UTC() in GoLang) given by OS reflects daylight savings(when needed) Does ubuntu OS clock time, update with ...
overexchange's user avatar
1 vote
4 answers
1k views

`ls -l` output duration instead of date/time eg "5 mins"/"6 hours"/"7 days" etc?

If I last modified a file 5 minutes ago, is it possible to make ls-l output something like "5 mins" instead of the actual date/time?
B.Tanner's user avatar
  • 2,636
1 vote
1 answer
2k views

Suggest any GUI App similar to digital wellbeing or Qualitytime for Ubuntu

I am new to Ubuntu. I want to count the total time spend on each app and on-screen time. Is there a software for the same? For example Digital Wellbeing and QualityTime.
Shubham's user avatar
  • 21
2 votes
0 answers
29 views

Samba share write access allowed in chosen time - how to do it?

I would like to configure a samba share to be writable only within scheduled time. What is the best method to do it? Regards Kriss
Kriss's user avatar
  • 21
0 votes
1 answer
194 views

Long load time for kernel after Boot repair

After a necessairy boot repair, the kernel load time is significantly longer than normal: 34s. http://paste.ubuntu.com/p/s45GGcf22B I don't know how to fix that. about: Long kernel load time the Intel ...
Rogonow's user avatar
  • 91
0 votes
1 answer
7k views

Chrony time service doesn't work perfectly, synchronisation problems

On our Ubuntu 20.04 servers we run chrony as a time service. Unfortunately we always have time synchronization problems. It would be great if it ran always correctly for up to 0.05 seconds. How can we ...
tom's user avatar
  • 73
0 votes
1 answer
105 views

how to swap the time and cpu usage in shell script

This is my code here, ps -eo %cpu --sort=-%cpu |head|tail -n+2 | sed "s#^#$(date +%T);#" and the display will be like this: 01:29:29; 1.2 may I know if I want the output like: 1.2;01:29:29 ...
user1153111's user avatar
3 votes
1 answer
447 views

Running, or "injecting" software with specific date [duplicate]

Is there a package or a way to run a software with a specific date or time so that when you run it, it uses the date you input instead of your system date.
Pohar's user avatar
  • 35
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: ...
uzaysan's user avatar
  • 123
0 votes
2 answers
727 views

Why bash version do not support time up to millisecond? [closed]

Want to get the time in UNIX server up to millisecond but the output show below. Currently using bash version 3.2.57(1) $ date +%Y-%m-%d:%H:%M:%S.%N 2020-10-21:16:06:59.%N ...
Hawa's user avatar
  • 21
0 votes
4 answers
2k views

Wrong time when not connected to Internet

I have been a couple of days without Internet at home as my router has died. During these days I have observed the time shown by Ubuntu was completely wrong, way off. I do not think this is normal and ...
Javier Guzmán's user avatar
3 votes
1 answer
2k views

Automatic date and time doesn't work

The automatic date and time feature doesn't work even after enabling it. I have dual boot Ubuntu alongside Windows 10 and every time I switch to windows and comeback to Ubuntu, the time is changed and ...
Raj Tiwari's user avatar
1 vote
0 answers
142 views

how to force date and time to be permanently shown on lock screen?

Ubuntu 20.04 here. I searched here but found nothing: https://extensions.gnome.org/# (may be I didn't search well?) If I keep pressing ESC, it will toggle user login and the date&time. I need it ...
VeganEye's user avatar
  • 161
2 votes
1 answer
5k views

How to find time difference between two computers?

I'm running a distributed computer setup with one machine as time server for the other so the two are in sync to the accuracy of a few ms. I followed answers on this question: How do I setup a local ...
jash's user avatar
  • 123
2 votes
0 answers
99 views

How should I configure my OS so that theme of stackoverflow changes according to time of the day?

I'm using Ubuntu 18.04 and I want stackoverflow's theme to be change according to time of day: light theme when daytime and dark theme when night. In the site settings, when I set theme to "...
sahinakkaya's user avatar
1 vote
0 answers
44 views

How to change date from command line on Ubuntu 20.04 [duplicate]

For Ubuntu 20.04 desktop PC I can change date and time from the UI by using these steps, Click Date & Time in the sidebar to open the panel. If I have the Automatic Date & Time switch set to ...
A l w a y s S u n n y's user avatar
0 votes
0 answers
30 views

boot time for 20.04 LTS is very high on Lenovo N200 4GBRAM 180HDD

PC spec are: ''' Linux krishna-3000-N200 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ''' lshw for pC is below: ''' description: Computer width: 64 bits ...
Kks's user avatar
  • 1

1
2
3 4 5
12