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
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?
Sathish Kanna's user avatar
2 votes
1 answer
175 views

How can I have the date and time displayed in English without changing my locale settings?

I am in Nairobi, Kenya (EAT) and my Date and Time are displayed in Afaan Oromoo. I want to change this to English without having to change my locale. LANG=en_IE.UTF-8 LC_NUMERIC="om_KE.UTF-8" LC_TIME=...
Sylvester's user avatar
4 votes
1 answer
2k views

Prevent clock from advancing to a system time after Ubuntu Server build time

I have an Ubuntu Server 18.04.1 LTS in a lab environment where I need to set the date a couple of years back in time (e.g. 2016-04-22). I can set the older date/time without any issues but the OS ...
Kenzie MacNeil's user avatar
2 votes
2 answers
2k views

What is the date command line corresponding to var="$(date +"%x %r %Z")"

If I run the following command line on Ubuntu: var="$(date +"%x %r %Z")" echo var I can get the desired output. But If I just run date +%x %r %Z I will be given errors: date: ...
user5280911's user avatar
0 votes
2 answers
2k views

Timezone can't be changed

I am trying to fix an error in my timezone config on Ubuntu 18.04. When I go to the Date & Time control panel, no matter where on the map I click, it always says MDT (UTC-06). Also did the ...
Schparky's user avatar
  • 101
0 votes
0 answers
33 views

Month and Week names are lower case [duplicate]

"Dates & Times" for Brazil are lower case while other locations it is title case. I am using Ubuntu 18.04. Where should I report this issue? I still don't have an answer. Many languages have ...
leoheck's user avatar
  • 504
-1 votes
1 answer
1k views

Change default date format

I've been trying to change the default date format since past few days. Current format:- $date Mon Aug 20 14:14:43 IST 2018 Expected format:- $date Monday August 20 14:14:43 IST 2018 Current ...
Gowtham's user avatar
  • 311
2 votes
1 answer
1k views

NTP summer date in Brazil is incorrect

I have a problem with an Ubuntu server hosted in Amazon services. NTP summer date is incorrect for Brazil, I followed all instructions in the documentation of Ubuntu Server and followed this guide, ...
Paulo Henrique's user avatar
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 ...
Gowtham's user avatar
  • 311
1 vote
1 answer
656 views

Change date format on Ubuntu Mate 16.04 LTS also affecting Thunderbird

How can I globally change the date format on Ubuntu Mate 16.04 LTS which also affects Thunderbird?
Anderson's user avatar
  • 201
2 votes
2 answers
3k views

Date and time in the past lost after reboot or poweroff/poweron

I am using Ubuntu 14.04.4 LTS (trusty) on a Freescale i.MX6 (ARMv7) processor. When I move the date and time to the future with respect to the currently set date and time, I am able to set ...
Fabius Wiesner's user avatar
0 votes
1 answer
113 views

Timezones Problems

I have an issue with my time zone, when i use this command i can see the date: $ timedatectl and it shows me the next message: Local time: Wed 2018-06-06 11:02:25 -04 Universal time: Wed 2018-06-...
Luis Alfredo Serrano Díaz's user avatar
0 votes
1 answer
435 views

Is there a way to preserve modified date from a directory if I remove a file from it?

I'm kind new on Linux world and trying do some stuff, like creating that classic bash example to remove files older than X days. I was able to do that, but there is one think I can't solve, when the ...
user avatar
26 votes
0 answers
27k views

Ubuntu 18.04 how to show date in top bar [duplicate]

In my top bar, only the time is shown. How can I also see the date there?
Jonny's user avatar
  • 1,139
29 votes
3 answers
17k views

Ubuntu 18.04 show date and time on every screen

Since the update to 18.04 from 16.04, i see top bar with date and time only on the primary screen of my notebook. On the other screens the top bar is not shown. Another anoying thing is i see only ...
strader's user avatar
  • 413
2 votes
1 answer
152 views

Remove date in desktop icons' name

How to remove date (most probably the last modified date) from the desktop icons' name? I tried renaming it but the date still does not go. I have dragged the folder from nautilus to desktop. I am ...
Apoorv Potnis's user avatar
0 votes
2 answers
87 views

Laptop setting date to random time upon battery dying

The title says it all. Whenever my laptop dies, it just sets the time to something wayyy ahead of what we're at, like June 28th, 2184 at 4:02 AM. Any fix for this or is my laptop just screwed? I'm ...
B Grant's user avatar
5 votes
1 answer
21k views

How to remove only files created before a specific date and time

l would like to remove from my directory files which have been created before 04/29/2018 at 4:00 pm. Thank you
vincet's user avatar
  • 789
1 vote
0 answers
117 views

Timesync of virtual server

I have a Linux (Ubuntu 16.04 LTS) virtual server (using virtuozzo) running at a external provider and was not able to get 2-factor-authentification running in my nextcloud instances. I think this is ...
MelBourbon's user avatar
0 votes
1 answer
225 views

Kubuntu: show date and time on 2 lines

On one of my Kubuntu 14.04 systems, the date and time are displayed on separate lines. On the other system, they're displayed on a single longer line. How can I control the number of lines?
Paul A.'s user avatar
  • 2,141
4 votes
1 answer
3k views

Converting list of dates/times from GMT to PST

If I run the command by itself it seems to be working fine. As example using: date --date='TZ="PST" Sun Jan 01 05:00:10 2017' Sat Dec 31 21:00:10 PST 2016 However, I'm trying to use an input file ...
user1869428's user avatar
2 votes
1 answer
33k views

Kerberos authentication: clock skew too great

When trying kinit [email protected] I get [email protected]'s Password: kinit: krb5_get_init_creds: Clock skew too great What to do? Here is my timedatectl status $ timedatectl status ...
Viesturs's user avatar
  • 652
1 vote
0 answers
636 views

Ubuntu Mate time synchronisation issue

I can't manage to fix the time on the Ubuntu Mate I have installed on a Raspberry Pi3. "timedatectl" reports Local time: Tue 2018-02-20 15:30:22 GMT Universal time: Tue 2018-02-20 15:30:...
user8427661's user avatar
2 votes
1 answer
104 views

date wouldn't change from console

I'm in need to temporarily change the date to debug one script and I run inti unexpected problem: root@xxx:/# LC_ALL=C date Wed Jan 31 17:09:02 EET 2018 root@xxx:/# LC_ALL=C date -s "2018-01-10 17:09:...
kovalenko-alex's user avatar
2 votes
2 answers
524 views

How to use "date" command parameters

I have read the date command manual. There are many format controls like %a, %b, %c, and so on. After reading through the manual I did echo $(date %s) to know the absolute time. It was not correct ...
Smile's user avatar
  • 1,099
1 vote
1 answer
476 views

Ubuntu Server How to delete timezone

I try to set my timezone to asia/kuala lumpur. But it came out with 2 timezones, how do I delete the universal timezone?
Ahmad Afiq's user avatar
0 votes
0 answers
325 views

Automatically Sync system time from hwclock once a day

My system time on a ubuntu 16 EC2 instance seems to keep shifting, couple minutes every month, after 4 months they have shifted so far that calls to the AWS api are failing. The hwclock seems fine - ...
Thomas Smart's user avatar
1 vote
1 answer
236 views

Clock Overide Extension Versus dConf When Formatting Time Display

First let me say that the new extensions support in Ubuntu 17.10/Gnome 3 is a great feature. My question has to do with formatting the time and data that appear in the upper bar at the top of the ...
user avatar
0 votes
0 answers
229 views

Configuring date and time in Ubuntu 17.10 [duplicate]

I like to have the date and time in ISO format (2017-10-30 19:57) on the top right of the screen. I also like to be able to configure things from the command line (an issue not addressed in the ...
st01's user avatar
  • 1,083
19 votes
3 answers
11k views

How do I customize the date/time display in GNOME Shell's top bar?

Time indicator is shown as "%a %H:%M" in the center of the top bar. How do I move it back to the right where it belongs, and make it include the full date and time ("%Y-%m-%d %s %H:%M")?
sds's user avatar
  • 2,543
4 votes
1 answer
4k views

date command not resolving properly in bash alias

I'm trying to set up a way for me to just type newjournal, and a new journal entry named year-month-date-time.txt is created in a year subdirectory in ~/documents/journals. I've got it set up as an ...
YMGenesis's user avatar
  • 103
1 vote
0 answers
31 views

Date not localised [duplicate]

I'm having an issue with date format. It shows as short day, month, day number, time. But all my location settings are GB, so I was expecting short day, day number, month, time. I've tried updating ...
Tyke Moll's user avatar
0 votes
0 answers
135 views

16.04: I can no longer open time and date settings

I can click on the time and date settings from the drop-down menu in the top right all I want, but nothing happens. I've tried rebooting. Any ideas on how to fix this?
Sorbier's user avatar
  • 11
3 votes
2 answers
2k views

Can't coordinate the correct time between system and rtcwake

The ultimate goal is to have my system shut off at the end of a script and wake up at a defined time the next day. I'm using rtcwake to get this done, like so (I am also printing the date and time to ...
Jefferson Paul Jones's user avatar
0 votes
0 answers
73 views

Change Time & Data formatting in menu bar and Add another time to another location

How could I change the format of the time and date in the Panel? I don't mean change it from time and date Settings, but to my own format, like: [day name , day- month name , month number -year / h(...
Mahmoud S. Marwad's user avatar
2 votes
1 answer
3k views

Change Ubuntu time and date for specific application

Is there any application which can manipulate time and date for any specific application? If I change date and time of system then browser can't let me access internet. Any help will be appreciated. ...
Mihir's user avatar
  • 31
2 votes
1 answer
509 views

Rename and convert dates in filename without file extension

My set of files are named according to GMT time zone. I successfully renamed and converted all files into the required time zone using the following steps. 1. This code removes all file extensions ...
csheth's user avatar
  • 431
0 votes
1 answer
236 views

Kubunu 17 Calendar Language

I have all my language set to British English but the calendar on the login splash and on the desktop panel shows in French. Very mysterious. What do I need to set to get this in English?
Mike Miller's user avatar
3 votes
1 answer
651 views

Find Saturday before file date in bash

I have a directory containing a large number of files to iterate and would like an efficient way to find the Saturday prior to the file's time of last modification. Here are two examples. The first ...
Pepper's user avatar
  • 39
0 votes
1 answer
438 views

Passing a date in an exiftool command

I am writing a bash script and want to get the date after every week. Is it possible? My command exiftool -exififd:dateTimeOriginal="2008:10:23 00" test.jpg So instead of 2008:10:23, I want to pass ...
Solaris's user avatar
  • 149
0 votes
1 answer
2k views

How to see all of log history on ubuntu?

I have a problem in my fingerprint installed on Ubuntu. Date and time system in ubuntu can be edited by the user, so the user late to the office and change the date and time system on ubuntu. Can I ...
Daniel's user avatar
  • 11
1 vote
2 answers
2k views

How to block access to changing clock and date for ubuntu?

My name is Daniel, I am work in IT support. I have a problem on my finger print installed on Ubuntu. Date and time system in ubuntu can be edited by the user, so the user late to the office and ...
Daniel's user avatar
  • 11
0 votes
1 answer
75 views

A script or application to tell me how far apart two dates are

I've got some files and for logging purposes I need to know how many days they are apart as well as potentially some other lengths. So I would like to have a script or application that: Can have two ...
user avatar
1 vote
1 answer
1k views

Date always resets to 11 Feb 2016 on Odroid XU4, running Ubuntu MATE 16.04

Every time I start my odroid XU4, the date seems to be 11th Feb 2016 for some reason. timedatectl command shows the below result: Network time on: yes NTP synchronized: yes RTC in local TZ: no
Aerluft's user avatar
  • 23
1 vote
1 answer
4k views

Problem with sorting date in LibreOffice Calc

I'm very lost in this situation: My objective is to sort a series of dates. When I try to sort dates in a column [for example 12/06, 09/16, 08/13 (MM/YY)], what I got is like this: 08/13 09/16 12/06 ...
Alessandro Monti's user avatar
5 votes
2 answers
2k views

Why does the time given by dmesg timestamps differ from the actual time (and output of `date`)?

I am using Ubuntu 16.04.2 LTS dmesg outputs lines like this: [ma mei 8 09:00:16 2017] [UFW BLOCK] IN=eth0 OUT= MAC= SRC=140.205.228.53 DST=xx.xxx.xxx.xxx LEN=143 TOS=0x00 PREC=0x00 TTL=111 ID=...
alwayscoffee's user avatar
0 votes
1 answer
340 views

Display month as numbers instead of words [duplicate]

I'm on ubuntu 16.04 and I was wondering if there was a way I could get the default clock in the upper right to display the month as a number instead of as a word. For example, instead of "Tue Apr 25 ...
Cyncopate's user avatar
-1 votes
1 answer
3k views

Dual boot date and time changes [duplicate]

I have a problem that dual boot system did not set a date and time as usual when I set that date and time every time I login.
lwtg's user avatar
  • 49
6 votes
1 answer
2k views

change date for execution of one program?

I really like the Nero Burning ROM program and was happy to see they had a Linux version. I downloaded and installed it and when it started it said I had a "trial date" until April 29th. Fine. I ...
LarryM's user avatar
  • 540
5 votes
2 answers
3k views

Budgie Question: is there a way to display the date with the time?

In almost every ubuntu flavor you can display the date next to the time, but some far I have not been able to find this option. I could click on the calendar and view the date, but it just bugs me ...
Dillon Burnett's user avatar