Let’s say, you have setup a new server which is running either Ubuntu 20.04 or Centos7.9
And while setting up cron, you notice the date time need to be offset correctly to have the actual time locally.
How about we just change the server to use local timezone altogether.
Here is how to do it.
Firstly, check first if the timezone list already updated.
Step1 : Check current setting by issuing the following command.
timedatectl
example output: (if UTC)
Local time: Sun 2022-03-13 12:46:47 UTC
Universal time: Sun 2022-03-13 12:46:47 UTC
RTC time: Sun 2022-03-13 12:46:47
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Step2: Check the actual timezone string required for Kuala Lumpur
timedatectl list-timezones|grep Asia|grep Kuala
..
Asia/Kuala_Lumpur
Step3: Set to the target timezone above Asia/Kuala_Lumpur
sudo timedatectl set-timezone Asia/Kuala_Lumpur
Step4: Re-check again
timedatectl
example output:
Local time: Sun 2022-03-13 20:49:41 +08
Universal time: Sun 2022-03-13 12:49:41 UTC
RTC time: Sun 2022-03-13 12:49:41
Time zone: Asia/Kuala_Lumpur (+08, +0800)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
Step 5: restart crond , httpd and check the logs
sudo service crond restart
sudo service mysqld restart
Step 6: Check logs
tail -f /var/log/apache/access.log
example:
52.77.255.203 - - [13/Mar/2022:20:36:44 +0800] "GET //i.php HTTP/1.1" 404 10072 "-" "python-requests/2.27.1"
52.77.255.203 - - [13/Mar/2022:20:36:44 +0800] "GET //infos.php HTTP/1.1" 404 10080 "-" "python-requests/2.27.1"
52.77.255.203 - - [13/Mar/2022:20:36:44 +0800] "GET //linusadmin-phpinfo.php HTTP/1.1" 404 10106 "-" "python-requests/2.27.1"
52.77.255.203 - - [13/Mar/2022:20:36:44 +0800] "GET //dashboard/phpinfo.php HTTP/1.1" 404 10104 "-" "python-requests/2.27.1"
Done.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Heyy There. I founnd your weblog thee use oof msn. This is ann extremely well wrditten article.
I’ll make surre too bookmark it and cime bac to reazd extra of
your uzeful information. Thankk you foor the post. I’ll definitely
comeback.
Remarkable! Itts reawlly awesime paragraph, I hae goot much lear idea
regaarding frkm thiis paragraph.
I constantly spent my half ann hour to reawd thus weblog’s rticles orr reviews
all the time alng withh a mugg oof coffee.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Your article helped me a lot, is there any more related content? Thanks!
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
I’m not sure where you’re getting your information, but great topic. I needs to spend some time learning much more or understanding more. Thanks for great info I was looking for this information for my mission.
I apologise, but, in my opinion, you are not right. I am assured. Let’s discuss. Write to me in PM, we will talk.
mfjLTF3EfPC
y7J07RPnTvF
NB9KGO64AUC
zlvUQjJ8dtT
O2CgGRecgw3
UriuC2T9FVn
9B7rC6npznl
uQg3rnzVt3w
udMK9I9dEov
v1DgWNpIaGr
rAYml66XigG
j8rOLXdrxEF
CuHQU8MqlPJ
RrRQlVErHax
3BQLJ3TbyCf
bWJj1NJ3aUS
lflTH27fcgh
6jrG87hUjr1
dzEXWyFfeUU
POzAgDfj5Af
FrJV0MNRAJL
6C39LQ1zyhs
pQ2k7rzBrN2
MIlxRXHf6Mr
7rPtWwgQ3Za
gHw51p5QmEr
baln3KSq0Mp
DZLDX1Byzox
WPfaZ0pCmeu
pzYiDtRep8C
vjvUB9LPnJV
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
https://medvin.ucoz.ua/forum/2-4303-1
https://bandori.party/user/261007/winnitalycom/
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?