Question

I have just, in my groggy morning state, reversed & confused the arguments to ln, replacing /usr/share/zoneinfo/America/Toronto with a link to the non-existant /etc/localtime, when I really wanted to link /etc/localtime to Toronto. Now I have no timezone file for where I live. Does anybody have a copy or know where I could get one? It's just instructions on how to translate unix time into toronto time, but I cat'd a few of the other files, and they don't seem like something I'm up to the task of writing by hand.

I know. At least I've never rm -r'd my /

edit:

Before anybody asks, I just tried sudo dpkg-reconfigure tzdata, gleefully entered "America" then "Toronto", only to crash and read, cp: cannot stat '/usr/share/zoneinfo/America/Toronto': no such file or directory. ARGH.

Was it helpful?

OTHER TIPS

apt-get install --reinstall tzdata

Depending on which GNU/Linux distro you're using, you may be able to just re-download the whole of the tzdata package using its package manager. I know ArchLinux has a package for the time zone data and so does Debian.

However, you can also manually download the whole package and extract the time zone file that you want.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top