On some Linux distributions (for example, Ubuntu), the timezone is controlled by /etc/timezone file.
For example, your current timezone might be US Eastern time (New York) as shown below.
# cat /etc/timezone
America/New_York
To change this to Egypt Time (Cairo), modify the /etc/timezone file as shown below.
# vi /etc/timezone
Africa/Cairo
Also, set the timezone from the command line using the TZ variable.
# export TZ=Africa/Cairo
5 comments:
Hello Ahmed
You can place a note here to update the timezone info to reflect timezone changes in Egypt, where DST is cancelled this year. Update the package named tzdata ( for Debian based distros )
Thanks :)
Hello Mohamed
Please send me the full data to add it to the note.
Thanks,
Ahmed Abd El Latif
Egypt changed the timezone DST settings this year, which will result on machines everywhere to report Cairo's time incorrectly, so an update for the timezone data is crucial.
For Debian based distros, this package is called tzdata
You can install it by running the following in terminal:
sudo aptitude update
sudo aptitude install tzdata
Post a Comment