Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Solve Linux time A.M. And P.M. An upside-down problem

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Recently, when I set up the openstack test environment, I found that the Linux system was at the wrong time. For example, at 10:10 in Linux, the output of date was Mon Apr 8 22:10:00 EDT 2019.

I tried a lot of methods, but later I noticed EDT. I remember that the date output of Linux was CST. When I checked it on the Internet, it was really a time zone problem.

EDT: refers to Eastern Daylight time, Boston, New York City, Washington, D.C., all in this time zone, with a time difference of 12 hours from Beijing time, 12 hours later.

The solution is as follows:

Mv / etc/localtime / etc/localtime.bakln-s / usr/share/zoneinfo/Asia/Shanghai / etc/localtime

Then execute date to verify the OK!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report