In general, when we install the Linux operating system in Virtual Private Server so we can directly log in with the root account.
This is without the need to set any settings except to choose what Linux distro and fill in the root password that can be automatically created from the VPS panel. What if we want to know our server now what is the date and time? Configuration date and time this will affect the time used in the system also of course in your website for example.
Just different formats only, especially when using other time zones so there is a difference of several hours. This can make us confused in log timestampnya different from the time in Indonesia now, or the clock posting different. Well … to know the current time used in the Linux operating system just type the following command:
Yes it is so easy, and it will appear like this:
Tue Sep 15 18:29:02 EDT 2017
And this is when I check the date of 16 September 2017 at 5.32 WIB (West Indonesia Time). So obviously there is a time difference. This is not a faulty system clock but instead follows the default setting of its VPS provider server. The solution is to change the hours and dates as well as the time zone of EDT (Eastern Daylight Saving Time) destined for North America and Caribbean (UTC-4) to Indonesia. Oh yes this command can also be executed in BSD type operating system like FreeBSD, OpenBSD, NetBSD and so on. Still a big family of UNIX because of it.