1

I am trying to correct the time on the Debian server. I selected my timezone in the

/usr/bin/tzselect

I select the correct continent and country, when the system asks me if the date is correct and I have to say Yes or No the time is displayed correctly, however after I confirm and check it with "date" the time does not change ie. is the same as before running timezone config.

Any suggestions?

Thanks.

Eleeist
  • 193
  • 1
  • 7

3 Answers3

3

The better way is use:

sudo dpkg-reconfigure tzdata

also you can set this manually by copy one file with timezone settings:

sudo cp /usr/share/zoneinfo/Europe/Warsaw /etc/localtime

just change "Europe/Warsaw" to correct values ;-)

jamzed
  • 1,080
  • 7
  • 8
3

Usually, I use the following to reconfigure my timezone:

$ sudo dpkg-reconfigure tzdata

For more information, you can have a look at this page.

If your timezone is correct and you need to adjust your system clock, it is recommended to install and run ntp daemon. At least, you can use ntpdate command to update sync you clock.

Khaled
  • 35,688
  • 8
  • 69
  • 98
1

You might have to log out-and-in, or just change your TZ variable.

Florian Heigl
  • 1,440
  • 12
  • 19