Linux servers time may be not adjusted to the local time zone so it may make some problem if we use the time in any process in our project.
To know the current time of the server:
1- Login to ssh.
2- Type the date command: date
3- The result will be something like that: Mon Jan 21 04:24:53 EST 2013
All Times are saved in a folder in the system its path is: /usr/share/zoneinfo/
and the local time of the server in the file its path is: /etc/localtime
We can change it to the local time zone by one command:
cp /usr/share/zoneinfo/Egypt /etc/localtime
Now if we type date it will return the local time of Egypt...
Regards,
To know the current time of the server:
1- Login to ssh.
2- Type the date command: date
3- The result will be something like that: Mon Jan 21 04:24:53 EST 2013
All Times are saved in a folder in the system its path is: /usr/share/zoneinfo/
and the local time of the server in the file its path is: /etc/localtime
We can change it to the local time zone by one command:
cp /usr/share/zoneinfo/Egypt /etc/localtime
Now if we type date it will return the local time of Egypt...
Regards,