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.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
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.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Mostbet registrering – användarvänligt gränssnitt för
kasinospel.
احترافية عالية في العرض! حلول مثالية للاحترافيين!
1xbet
Enjoy how concise yet comprehensive this turns
out to be. Perfect for newcomers to understand the
basics. 1xbet
Caça-Níqueis Tigrinho – jogue a demo !
Mecânicas simples em cassinos como Blaze. Ganhe jackpots!
Tigrinho caça-níqueis
Blackjack is a classic choice. Study the basics and enjoy the play.
#GambleOnline Caça-níqueis para adultos
Fortune Dragon da PG Soft é cheio de emoção.
Ganhe com bônus em cassinos como 1Win . Jogue agora !
fortune dragon
Caça-Níqueis Tigrinho – ganhe com bônus!
RTP de até 97% em cassinos como Blaze. Ganhe jackpots!
Tigrinho online
Promoções aumentam seu saldo, mas leia os termos.
Os requisitos de aposta podem ser altos. Aposta mínima R$0
Fortune Dragon da PG Soft é perfeito para diversão .
Teste giros grátis em cassinos como MegaPari.
Descubra o dragão! fortune dragon demo
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://accounts.binance.com/sk/register-person?ref=OMM3XK51
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
segelyacht mieten kroatien https://eurosegeln.com/yachtcharter-kroatien
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
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.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://accounts.binance.com/zh-TC/register?ref=VDVEQ78S
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.com/en-IN/register-person?ref=UM6SMJM3
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://www.binance.info/ph/join?ref=YY80CKRN
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
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 don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.