Questions tagged [date]

Questions regarding NTP(network time protocol), cron(task scheduler) and the display of date and time in the panels and elsewhere in Ubuntu. This is an overly general tag, avoid using it if possible.

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

How to create a directory with current date without linebreak

Moin! I'm using Ubuntu 22.04. I try to create a directory with a shell script. I searched already for solutions, but all what I found creates a folder with a line break at the end. I tried this: sudo ...
martin's user avatar
  • 17
0 votes
0 answers
17 views

hwclock --set with --date seem broken on Bionic

I am attempting to run hwclock on an embedded bionic version for an aarch64 Layerscape processor from NXP. The command I am using is: Calling /sbin/hwclock -D --set --date='2023-07-07 16:34:08' ...
AbelianMemes's user avatar
1 vote
1 answer
47 views

Is there a way to audit who is changing the system time?

I've got an openvpn client running which seems to be causing a problem on my system by changing the system time for my machine. How do you prevent openvpn clients from changing the system clock? Is ...
Rusty Weber's user avatar
0 votes
0 answers
59 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 ...
Adrik Ivanov's user avatar
0 votes
0 answers
58 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, ...
Rusty Weber's user avatar
5 votes
3 answers
2k views

date pipe - bug or my mistake?

I faced a strange behavior of the date command: echo '1 JAN 2023' | LC_ALL=en_US.utf8 date -d - This produces plainly wrong output: Sun Jun 11 12:00:00 AM CEST 2023 But this is ok: LC_ALL=en_US....
xerostomus's user avatar
0 votes
4 answers
196 views

Synching time and date of two Ubuntu machines not connected to the internet

I have two machines machine A with ip 192.168.0.2 machine B with assigned IP 192.168.0.3 They are both connected to a local network and I would like to set the date and time of machine A to match ...
UserK's user avatar
  • 255
2 votes
1 answer
89 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 ...
kakakakakakakk's user avatar
1 vote
1 answer
213 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 ...
Luiz Carlos's user avatar
0 votes
1 answer
36 views

Editing time zones

I am using Ubuntu 20.4.5 and Gnome version 3.36.8. In the top panel, I find the local date and time. When I left-click on that, there appears a calendar and, below that, my city's name and the local ...
Stumblng Tumblr's user avatar
2 votes
0 answers
1k 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 ...
Talha's user avatar
  • 21
1 vote
0 answers
100 views

How to make Evolution sort email by Date?

Despite configuring Evolution to sort emails by descending Date, it is not doing it. Note in the attached screenshot how it not only is ascending some emails in the stack it is also mixing up the ...
G.W.'s user avatar
  • 583
0 votes
0 answers
63 views

Ubuntu 22 server reboots after using date --set or timedatectl set-time

I ssh into remote server and first do timedatectl set-ntp no then I change the date a few times with either date --set timedatectl set-time and server reboots, losing it's connection to vpn (...
nnarefun's user avatar
0 votes
1 answer
120 views

Cannot add english locale for my country (CH)?

I like having my system in English, but I hate this absurd 12h AM/PM system. So I wanted to configure the locales for Switezrland. I found this en_CH repo and then : $ sudo locale-gen Generating ...
nowox's user avatar
  • 153
1 vote
0 answers
21 views

Can Spectacle include information from the taskbar in the screenshot?

I want to make a screenshot with Spectacle ( 20.04.0 ) including the date. I tried clicking on the clock, which opens the agenda and then make a screenshot. When I do that the agenda disappears and ...
Joepie Es's user avatar
  • 1,430
1 vote
0 answers
154 views

change date format for timedatectl ubuntu

How to change date format for the command timedatectl I'm getting results like YYYY-MM-DD I need DD-MM-YYYY Local time: Mon 2022-05-16 14:41:06 IST Universal time: Mon 2022-05-16 09:11:06 UTC ...
Ramesh KR's user avatar
  • 121
12 votes
1 answer
854 views

Understanding output of command: date -d "12:24 <lower-case-alphabet>"

Can someone please help me understand why adding any lower-case-alphabet (a-z) as below makes a difference in date -d output and what do these letters in that command mean? wip$ date -d "12:24 a&...
c10's user avatar
  • 123
1 vote
1 answer
176 views

How to change Date language to English while using a different Format?

I'm running Ubuntu 20.04.4 LTS with Language set to English (US) and Formats set to Deutschland. Everything works fine, except for the name of months in dates, e.g. drwxrwxrwt 2 root root 4,0K Mär ...
Diogo Eichert's user avatar
2 votes
1 answer
1k views

How can I customize the time and date format in the top bar, without a shell extension?

There are several Gnome Shell extensions, but how do they work? Can I do what they do? I want to use a customized date/time format string myself, without requiring a shell extension. Is there ...
MiguelitoCogito's user avatar
0 votes
0 answers
37 views

Overwrite FS properties with the EXIF props

I currently have some files that are working and displaying the correct properties from the FS. But some are showing incorrectly when trying to order by date. As the date is showing as "Unknown&...
Jamie Hutber's user avatar
4 votes
1 answer
472 views

Files with date "Unknown" but files have date created in meta data

I am rather confused why nemo is reporting that some files have no date set. Which means I cannot order my files by Date. This is only happening with my GoPro videos I will add. But when checking I ...
Jamie Hutber's user avatar
0 votes
2 answers
2k views

Writing a specific format of time in a text file every minute using Cron [duplicate]

I'm rather new to Linux. I recently wanted to learn how to work with Cron. So I wrote the following line to crontab file and it worked: * * * * * date >> //home/os/system-date.txt This line will ...
Fish_n_Chips's user avatar
0 votes
0 answers
192 views

Would like local time to be automatically updated

I am using Ubuntu 20.04 server edition on a RPi 4. I have seen tutorials and posts on how to set the local time manually. However, I would like to set the device to automatically update the local ...
noobuntu's user avatar
0 votes
1 answer
471 views

What is RTCTimeUSec shown by `timedatectl show`?

On assorted flavors and versions of Linux, I see the following when issuing the timedatectl show command: Timezone=America/Los_Angeles LocalRTC=yes CanNTP=yes NTP=yes NTPSynchronized=yes TimeUSec=Mon ...
AlMo320's user avatar
  • 75
0 votes
0 answers
93 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
3 votes
0 answers
260 views

date command timezone not reflecting correct date/time from timedatectl

I am in the MDT timezone (UTC -600). When I run the date command it shows the UTC time but shows MDT as the timezone, so the timezone looks correct but the time is actually 6 hours ahead of what it ...
syntax's user avatar
  • 31
2 votes
0 answers
111 views

Gnome display date in vertical panel

I have installed Dash to panel to my Gnome desktop and can't find a way to display the date with the time because it's a vertical panel. I have positionned my dash panel to the right:
London Smith's user avatar
0 votes
1 answer
86 views

Is this a bug in 'date' command version 8.28/8.30?

When I want to display the date in format YYYY-MM-DD I use the command: date +%Y%m%d This worked for ages without a problem. Now in Unbuntu 20.04LTS with the date command version 8.30, it gives an ...
Jacq's user avatar
  • 1
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
  • 239
1 vote
0 answers
141 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
2 votes
2 answers
176 views

How to manipulate date keeping the same time via command line

I am in a need of manipulating the system time for few minutes. Say I need to keep the time as it is and change the date to next date. After few minutes.. I need to go back to the normal time with out ...
PRATAP's user avatar
  • 22.1k
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
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 ...
Gqqnbig's user avatar
  • 689
0 votes
1 answer
80 views

Command date execution

I'm trying to execute this command date +'%-4.4h %2.1d %H:%M' however the output is not correct: %-4.4h %2.1d 12:50 I believe that there is something wrong either with my ubuntu terminal or the ...
HANA's user avatar
  • 3
0 votes
0 answers
23 views

Create a window that displays just the date, just like xarclock, except for the date

I want to create a window that simply displays the date, with as many of these requirements as possible - a -geom option - a -bg and -fg option to specify background and foreground options - an ...
Leo Simon's user avatar
  • 1,519
2 votes
1 answer
426 views

Using datetime expression in alias

I have an application with logging, and I usually watch it with tail -f /var/myapp/logs/2021-04-20/main-log-2021-04-20.log How can I create an alias for this command and execute it with current date?
Mateech's user avatar
  • 131
1 vote
0 answers
120 views

how to make the status bar to show both georgian date and persian(shamsi) date?

Is there a way to make the status bar on the top the screen to show both georgian and persian date? It would be really handy
Parsa's user avatar
  • 452
0 votes
1 answer
105 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
1 vote
1 answer
254 views

Update date and disable automatic updates

Ubuntu 20.04 running in VirtualBox with MacOS host Using python rather than a shell script. For linux commands running in a sub-process. Date is updated, however not long after date/time is reset ...
Rob Raymond's user avatar
0 votes
0 answers
43 views

Display of dates/times in ISO 8601 format in Files (Nautilus) [duplicate]

Is there a way to get the file manager Files (Nautilus?) and other applications under Ubuntu to display the date and time in standard ISO 8601 format, instead of the "comfortable" style, ...
ve3oat's user avatar
  • 309
2 votes
1 answer
2k 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
0 answers
58 views

How to find and move files between certain dates? [duplicate]

I have two repertories named 'test1' and 'test2' with multiples files with .jpg or .mp3 extensions. I want to find and move all files between 22-juin-2016 and 21-September-2018 to a new folder called '...
Neo Capo's user avatar
1 vote
0 answers
101 views

How to correct Modified Date in Files/Nautilus

How do I get Nautilus/Files to display the correct modified date? I just noticed that when my camera's RAW files, the modified date displays a date 31 days in the future! Please refer to the ...
trc_gno4.8's user avatar
2 votes
1 answer
1k 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
2 votes
0 answers
254 views

Automatic Date & Time

Today something strange is happening. I'm running Ubuntu 20.04 with the latest updates, and the standard GNOME UI. My time suddenly started going wrong, and it seems to be due to the Automatic Date &...
DodgyCodeException's user avatar
3 votes
1 answer
710 views

Can not change date/time format

I am using UM 20.04 on a persistent install on a pendrive. When I use dconf-editor and change the custom time format, nothing changes. Same thing happens on a HD installation. Why did Ubuntu Mate make ...
fixit7's user avatar
  • 2,796
0 votes
0 answers
248 views

'date' Command Failure in Ubuntu 18.04 LTS

I am getting errors on the date command if I use the timezone designation stored in the system: $ date -d "2019-12-10 23:26:30 EDT +4 hours" date: invalid date ‘2019-12-10 23:26:30 EDT +4 ...
Dave Nagy's user avatar
2 votes
2 answers
990 views

Ubuntu on Raspberry Pi 4 Internet/Date Issues

I have installed Ubuntu Server 20.04 on a Raspberry Pi 4 4GB model. It's meant to be a media/file server for my parents. I set everything up on it at my house and it works great. However, when I hook ...
neilsimp1's user avatar
2 votes
2 answers
2k views

Subtracting dates formats in bash

I am trying to create a countdown - most likely the hard way. I have it setup like this: #! /bin/bash #When to execute command execute=$(date +"%T" -d "22:30:00") #Current time ...
CJ-Tech's user avatar
  • 35
0 votes
1 answer
134 views

Configuring date command

Linux noob here! My PC runs Lubuntu 18.04.4 LTS (32-bit). The other day, I learnt about the date command. It's typically not useful for me because I could just look a little above my screen at the ...
Sujay R's user avatar
  • 29

1
2 3 4 5 6