Jump to content
Hak5 Forums

Recommended Posts

I was looking on the forum for any information around setting up time zones.  UTC is fine, but it would be beneficial to be able to have the ability to set up time zone information.


Share this post

Link to post
Share on other sites

Okay.  I am prepared to get schooled here.  But this is what I did.

I checked the files in /usr/share/zoneinfo.

I found the zone that I wanted (EST5EDT) and looked at the file (cat /usr/share/zoneinfo/EST5EDT) .

I then took the second line (EST5EDT,M3.2.0,M11.1.0) and did the following:

uci set system.@system[0].timezone=EST5EDT,M3.2.0,M11.1.0
uci commit

Of course this is a fancy way of modifying the /etc/config/system file and adding:

config system
        option timezone 'EST5EDT,M3.2.0,M11.1.0'

Then I created an /etc/TZ file by doing:

echo "EST5EDT,M3.2.0,M11.1.0" /etc/TZ

Then I added the following line to /root/.profile:

export TZ=$(cat /etc/TZ)

rebooting the lanturtle then everything looked good.

I have worked off an on with *NIX for a very long time (think SunOS 1.0) but I don't consider myself anything other than a "novice".

The lanturtle uses the openwrt distro so reviewing the openwrt documentation will help a lot with anyone digging around in the lanturtle.





Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.