Questions tagged [date]
154 questions
0
votes
2 answers
how to manage dates in shell
emphasized textI have a file containing 14000 dates . I wrote a script to find the last 5 days ,…

matarsak
- 37
- 5
0
votes
1 answer
Date / time out of sync by days
I have several 2003 servers in my domain that randomly change their date/time by several days, sometimes. They are all getting their time from an AD server acting as the primary DC.
I have looked in the event viewer to find that in the evening the…

Z Holt
- 219
- 1
- 6
- 19
0
votes
1 answer
Timezonesetting not honored, system keeps sitting on timezone
whatever I try, my system (Ubuntu) stays at BRT time instead of CET. I have tried:
sudo dpkg-reconfigure tzdata
and set the timezone to "Europe/Berlin".
date still shows BRT instead of CET or GMT+1. Setting the time with date to the correct local…

timewarped
- 3
- 1
0
votes
5 answers
Find all files recursively by a certain date
My site is compromised by an FTP brute attack and the cracker modified / created some files in my home directory.
Let's say the date of the malicious creation / modification is 2011-4-5 21:38:09. How can I find other files in public_html that is…

datasn.io
- 279
- 1
- 5
- 16
0
votes
2 answers
System reboot on executing "date -s" command
My system reboots when i give the "date -s" command. I collected the log and it says this
Jan 18 13:27:46 watchdog[2421]: file /tmp/cmm/strobeWDT was not changed in 1 seconds.
Jan 18 13:27:46 watchdog[3303]: shutting down the system because of error…

LinuxPenseur
- 443
- 1
- 6
- 16
0
votes
1 answer
Defining date attributes in openldap
There doesn't appear to be a standard date syntax. How do people handle entering dates into ldap so that they are comparable and invalid data can't be entered? I'm hoping to enforce a fairly standard format such as YYYY-mm-dd. Other people have…

Brad Mace
- 1,024
- 3
- 17
- 32
0
votes
2 answers
System Date and httpd/mysqld
Hi when i change the date:
date -s "01 Jan 2011 01:30:15"
Do services such as mysqld and httpd need to be restarted for thier date to update? or is there a better way to handle these services date capabilities. Some sort of reload or update date?

Sparky
- 242
- 1
- 5
- 12
0
votes
2 answers
Named pipe with shell command date
I want to let a standard user change the system date.
So I created a named pipe. The standard user write a date to the named pipe and a root process listens to it and sets the date accordingly:
(user)
echo 122515502010 > /tmp/mypipe
(root)
date -s…

michelemarcon
- 671
- 1
- 7
- 14
0
votes
1 answer
Forbid users to change DateTime settings at their desktop WinXP
What is the easiest way to block changing the Time and Date settings on desktop workstations running Windows XP?

adopilot
- 1,521
- 6
- 25
- 41
0
votes
3 answers
Server Time Jumped Ahead 7 Months
CentOS 5.x
My CentOS server appears to have jumped ahead 7 months. I'm not sure how or why. Are there any logs in CentOS that could provide more insight here?
Unfortunately, ntpd was not running. I've since configured/enabled it and the…

Mike B
- 11,871
- 42
- 107
- 168
0
votes
1 answer
Incorrect file creation/modication time in linux
In our server we get files uploaded daily by customers via FTP. However sometime the the time stamp of these appear incorrect even though the server time is correct. I got a file with time stamp Jun 27 when actually the date was Jun 25. The server…

nitins
- 2,579
- 15
- 44
- 68
0
votes
1 answer
How can I verify if time is set correctly on server in my bash script?
I'm working on ultimate backup script for very important server. My script already:
creates a backup
verifies copied file(-s)
verifies gz archive
compares MD5 on local and remote after sending file to remote server via scp
removes monthly backups…

Kamil
- 157
- 2
- 10
0
votes
0 answers
Wrong datetime for new created files in Gnome / Budgie
Running Budgie Desktop 10.5.1 on Ubuntu 20.04
Using date command in bash shows the correct creation date and timezone.
Trying touch testfile and checking with ls -l show correct datetime
Checking Date & Time Dialog of Budgie shows correct datetime…

Wotim
- 121
- 4
0
votes
0 answers
Centos 7 - I can't fix the datetime
It's NOT a VM. Physical server. Centos 7
I have tried to fix the time with:
date -s "04/03/2022 01:06:31"
or
timedatectl set-time 01:06:31
But it is impossible, it shows always 8 hours more as local time:
[root@localhost ~]# timedatectl status
…

Carlos S
- 1
- 1
0
votes
1 answer
Can't put correct date & time on LXC container with ubuntu
I'm tryig to put correct date and time, on Proxmox LXC container with ubuntu but I can't. There are some info of my server.
➜ ~ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu…

xabikip
- 11
- 1
- 6