DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-04-29 08:53:50

=v=
New member
Registered: 2008-04-29
Posts: 2

Unable to set time zone on my DNS 323

Just bought a DNS-323, and I having a little trouble setting the time zone. I've been using unix-based operating systems for years, but I'm still a little newbish. Links to tutorials or articles are much appreciated.


System information:
===============
- Firmware 1.04
- Fun Plug 0.5


Trouble description:
===============
I am trying to set the time zone to MST (-0700 GMT) through both the web gui, and the /etc/TZ file. Upon rebooting, the time zone resets to the default.


What I've done so far:
===============
- Logged into the web gui, and set the time and date manually (not using ntp)
- Logged into the web gui, and set the ntp server to DLink NTP server (ntp1.dlink.com) and time zone to MST
- Logged into the web gui, and set the ntp server to ntp.cpsc.ucalgary.ca (I live in Calgary, AB) and the time zone to MST

All of the above steps set the correct time zone, until the machine is rebooted. Please note that although the correct time zone is set, the time is actually one hour behind. For example, currently it's 11pm but the time shows as 10pm.


- Edited the /etc/TZ file with the following command: echo "MST7MDT" > /etc/TZ

Editing the /etc/TZ file sets both the correct time, and the correct time zone. There is no hour difference as mentioned above. Upon rebooting, the /etc/TZ file is reset to CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00


Questions I have:
===============
- Has anyone experienced similiar time zone issues?
- The only man page I found was for /etc/timezone. Does anyone have one for /etc/TZ?
- Is there a config file which sets the value for /etc/TZ? (rtc.conf?)

Offline

 

#2 2008-04-29 09:27:51

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Unable to set time zone on my DNS 323

There is a script in /mnt/HD_a2/ffp/start/adjtimex.sh which
sets the /etc/TZ file at reboot.  Edit that file for your time zone.

Last edited by mig (2008-04-29 09:28:06)


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#3 2008-04-30 07:50:28

=v=
New member
Registered: 2008-04-29
Posts: 2

Re: Unable to set time zone on my DNS 323

Worked. Thanks for the hand!

Offline

 

#4 2009-01-01 22:41:01

MiK
Member
From: Sweden
Registered: 2006-12-17
Posts: 102

Re: Unable to set time zone on my DNS 323

Hm? adjtimex.sh seems to be missing from my freshly installed 0.5?

Offline

 

#5 2009-01-01 22:53:48

Tilly
Member
Registered: 2007-11-11
Posts: 139

Re: Unable to set time zone on my DNS 323

MiK wrote:

Hm? adjtimex.sh seems to be missing from my freshly installed 0.5?

For what you need that?

Use your Time Zone and a NTP Server!

Offline

 

#6 2009-01-01 23:14:52

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Unable to set time zone on my DNS 323

MiK wrote:

Hm? adjtimex.sh seems to be missing from my freshly installed 0.5?

Yes, removed. Have a look at  /ffp/etc/examples/fun_plug.local instead.

Offline

 

#7 2009-01-02 00:39:50

MiK
Member
From: Sweden
Registered: 2006-12-17
Posts: 102

Re: Unable to set time zone on my DNS 323

k, thx for the info smile

Btw, how often is /ffp/etc/ntp.drift writen to disk?

Last edited by MiK (2009-01-02 00:46:41)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB