Change timezone in FreeBSD and Jails

I noticed my jail times were off so I did a quick lookup on timezones.  My main server was showing the right timezone, EDT to be exact since it’s daylight savings time now.


cp /usr/share/zoneinfo/America/New_York /etc/localtime

Copying to existing jails was easy:

for f in /jails/*net; do  cp /etc/localtime $f/etc/; done

Since I use ezjails now, I just copy this to my newjail/etc folder so all new jails have the right timezone:

cp /etc/localtime /jails/newjail/etc/