Skip to main content

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
92 views

Postfix logs in ISO-short format on Ubuntu 24.04

I have a newly installed Ubuntu server (24.04) with Postfix. I set the Postfix log location which worked fine except all the date formats are in the following format: Jun 06 18:03:45 But I want it to ...
smwk's user avatar
  • 101
1 vote
0 answers
59 views

Date format in Firefox / Ubuntu

In web pages rendered in Firefox 125 on Ubuntu 24.04, I'd like dates to have format yyyy-mm-dd. So should use that format for display. Now I see mm/dd/yyyy. In Firefox Language is English (UK). In ...
Alexander Bunkenburg's user avatar
0 votes
0 answers
95 views

Date is not correct in Ubuntu 20.04 (Chrony is not synchronised)

Now I find the time of date is not correct: root@hobot:~# date Wed 01 Apr 2020 06:04:21 PM UTC I tried to check the status of chronyd. It is ok and it has some available source. But chronyd doesn't ...
Ping Li's user avatar
1 vote
0 answers
38 views

Unix server time is wrong on reboot but corrects itself a few minutes later (this messes up my boot logs)

I don't really know why this is happening but when the server is booted, the date/time is always ahead of reality by a few hours, but it fixes itself after while. But this means my initial startup ...
chiwal's user avatar
  • 21
1 vote
1 answer
246 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 ...
Tippunmon 's user avatar
8 votes
2 answers
861 views

touch -t errors on last Sundays of March

touch -t is giving me "invalid date format" errors if the date code represents 2:00:00AM through 2:59:59AM on the last Sunday in March of any year (I've checked 2023,2014,2016,2018). The ...
Schroeder's user avatar
  • 201
0 votes
2 answers
144 views

Issue with touch -t command when setting specific dates

I'm encountering an issue when using the touch -t command in the terminal. My goal is to adjust the access and modification dates of a file named "testShell00" to a specific date in the ...
Jonatha Costa's user avatar
0 votes
1 answer
77 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....
Planemo 2's user avatar
0 votes
1 answer
96 views

Evolution Alarm Notifier and Calendar show wrong date format (US)

Ubuntu 23.04 Language: United Kingdom (not American!) Formats: German In both, drop down calendar and alarm notifier, I expect something like "24.12.2023" or "24/12/2023". Instead:...
Andreas K. aus M.'s user avatar
6 votes
1 answer
275 views

Is it possible to specify a negative date in the DATE command, that is, a date before the Birth of Christ?

I need to calculate the difference in days between two dates. With the date command we can convert dates to seconds and then calculate the difference in days. For example: $ echo $((($(date +%s --date ...
JungoBongo's user avatar
0 votes
0 answers
70 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 ...
Adalbert Hanßen's user avatar
5 votes
3 answers
2k views

how to use find command to get files created yesterday?

What is the option used with find to get files created yesterday on Linux scripting? The below trials don't work: find /log/bssuser/CDR/Postpaid_CDR_Log/ -newer yesterday OR find -mtime 24 ----------...
Amany Abd Elmnem's user avatar
0 votes
1 answer
231 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 ...
Eric Ryan Harrison's user avatar
0 votes
1 answer
106 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
1 vote
1 answer
243 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
173 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
213 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
  • 1,040
0 votes
4 answers
1k 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
210 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
540 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
42 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
2k 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
2 votes
0 answers
266 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
  • 683
0 votes
0 answers
81 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
230 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
22 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,480
1 vote
0 answers
210 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
859 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
300 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
3 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
51 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
597 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
240 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
797 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
157 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
4 votes
0 answers
429 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
  • 41
2 votes
0 answers
198 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
108 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
3k 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
  • 299
1 vote
0 answers
168 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
256 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.7k
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
135 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
86 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
27 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,539
2 votes
1 answer
601 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
165 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
  • 522
0 votes
1 answer
161 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
2 3 4 5 6