Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Check the Set Timezone in CentOS 7
#1





   

How to Check the Set Timezone in CentOS 7



   

First of all, we need to access our virtual private server using SSH. If you’re having trouble, reference the PuTTY tutorial!


   

You can check your current time zone by using the date command as shown below:


   
date

   

This will output the time in the following format:


   
Fri Mar 15 14:52:20 UTC 2019

   

Alternatively, you can use the timedatectl command. This command can:


   
           
  • Review the dates and timestamps
  •        
  • Change the date and time
  •        
  • Setup a timezone for the system
  •        
  • Enable automatic synchronization of the clock based on a remote server
  •    

   

The basic command looks like this:


   
timedatectl

   

The output will be as shown below:


   

Local time: Fri 2019-03-15 14:54:51 UTC
Universal time: Fri 2019-03-15 14:54:51 UTC
RTC time: n/a
Time zone: Host (UTC, +0000)
NTP enabled: n/a
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a

   

This contains information such as local time, universal time, and timezone.


   


   


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)