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
2 answers
122 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 ...
11 votes
8 answers
14k views

Thunderbird date format?

I have ubuntu 10.04 running Thunderbird 14.0 How do I change the date format to international standard? (eg; 2012-07-26) My system date already shows this format.
41 votes
3 answers
168k 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 ...
0 votes
0 answers
46 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 ...
1 vote
0 answers
26 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 ...
0 votes
1 answer
84 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:...
1 vote
1 answer
126 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 ...
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 ...
8 votes
2 answers
807 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 ...
0 votes
2 answers
77 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 ...
0 votes
1 answer
62 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....
6 votes
1 answer
259 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 ...
0 votes
0 answers
42 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 ...
84 votes
8 answers
224k 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 ...
5 votes
3 answers
1k 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 ----------...
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: ...
5 votes
3 answers
2k views

How to display date under time in GNOME

In Ubuntu 18.04, my current desktop looks like this: How do I display date under time in GNOME panel as below?
5 votes
2 answers
2k views

How Do I Change My Systemwide Date and Time Format to ISO 8601 YYYY-MM-DD hh:mm:ss Format on Ubuntu 18.04.4 LTS?

I am using Ubuntu 18.04.4 LTS with GNOME DE and I want to change my systemwide date and time format to ISO 8601 format, specifically YYYY-MM-DD for dates and hh:mm:ss for times. How can I do this?
0 votes
1 answer
97 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 ...
1 vote
1 answer
146 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 ...
0 votes
0 answers
131 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
156 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, ...
3 votes
2 answers
20k views

How can I change the default date format (using LC_TIME)?

How do I change the format of date command by modifying LC_TIME in locale? Currently the day of month uses %e format. I need it to be displayed in %d format. Below is the Current Format: #date Thu ...
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....
177 votes
7 answers
607k views

How can I display the current time & date setting?

How can I display the current time configuration, like the time zone, in Ubuntu?
0 votes
4 answers
715 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 ...
2 votes
1 answer
165 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 ...
1 vote
1 answer
399 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
39 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 ...
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 ...
2 votes
0 answers
217 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 ...
2 votes
3 answers
4k views

How do I get date and time stored in a bash variable to update when echoing it?

I have this script: date_time=`date "+%Y%m%d%H%M%S"` script_name=`basename "$0"` echo $date_time, $script_name sleep 2 echo $date_time, $script_name exit 1 It shows me this (same time). ...
87 votes
7 answers
494k views

How can I change the date and time on Ubuntu?

When I go to change the date and time it doesn't work. I try to unlock but it just won't unlock. If there is any way to make it work please help. I know it isn't very descriptive but I really would ...
0 votes
0 answers
76 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 (...
2 votes
1 answer
378 views

New Thunderbird (version 60+) to show emails' date with four-digit again?

Recently in Ubuntu 18.04 LTS we got a new Thunderbird version, jumping from version 52 something to now version 60.2.1 In the e-mail section which lists all e-mails, as well as in the individual e-...
0 votes
1 answer
2k views

Command inside another command - Bash

I know how to run a simple command inside another command, but in my case is special. My command contains " (date "+%Y-%m-%d").I need to display my log via 1 command. If I do this date &...
0 votes
1 answer
182 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 ...
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 ...
3 votes
2 answers
9k views

Time set through terminal resets after reboot

I set the the time using, e.g. sudo date --set="24 MAY 2013 18:00:00" sudo hwclock --systohc --utc This worked, but upon reboot the time was back to the old value. What am I doing wrong? I thought ...
1 vote
0 answers
193 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 ...
17 votes
4 answers
81k views

mkdir with date name? [duplicate]

In Linux shell, am I able to create a directory but the name would be a string returned from another program? And if I am able, how to? In particular I am asked to create a new directory in my Home, ...
12 votes
1 answer
857 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&...
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 ...
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&...
1 vote
1 answer
273 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 ...
0 votes
0 answers
47 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&...
4 votes
1 answer
560 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 ...
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 ...
0 votes
0 answers
212 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 ...
0 votes
1 answer
678 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 ...

1
2 3 4 5 6