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 2009-03-13 03:49:44

roth140
Member
Registered: 2009-03-12
Posts: 43

dns-321 date comes up 6 hours off?

when i type date in telnet i get

Fri Mar 13 01:40:20 UTC 2009, when locally it is Thurs Mar 12 8:40pm.

i have the time synced in the dlink GUI to ntp1.dlink.com and it shows the right time at the top of the page.

im having trouble getting my HD_a1 to copy to HD_b2 automatically.  i can enter the command manually and it works, but automatic has failed every time.  i tried setting the editcron.sh just ahead of the UTC time and rebooting but the time comes and goes with no transfer.

please help.

Offline

 

#2 2009-03-13 05:39:52

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: dns-321 date comes up 6 hours off?

What is the difference between where you are and UTC - Universal Time Coordinated?

It is not unusual for systems to track time at UTC and then display it after adjusting based on the time zone - this may be nothing more than presentation of the data.

Offline

 

#3 2009-03-13 06:15:03

roth140
Member
Registered: 2009-03-12
Posts: 43

Re: dns-321 date comes up 6 hours off?

central time US, -6 (chicago)

im trying to schedule auto backup times and i want... something like 10pm here... but i dont know if i should enter that to editcron.sh as 10pm CST or as 4am UTC.

Offline

 

#4 2009-03-13 16:29:25

blahsome
Member
Registered: 2008-03-02
Posts: 157

Re: dns-321 date comes up 6 hours off?

My cron jobs (not on the DNS but in Linux in general) are always scheduled using local time.

You can try scheduling a test cron job (e.g. print a message to a log) very quickly and see which one works.

Offline

 

#5 2009-03-26 20:19:10

talkingRock
Member
Registered: 2009-03-26
Posts: 100

Re: dns-321 date comes up 6 hours off?

I've have this problem on my dns-321 as well.   

The built in date, /bin/date, seems to ignore the time zone and always give UTC.   
Good news is that /ffp/bin/date works better.    It gives the correct time accounting for the timezone.   
I'm not sure if this is a bug or a feature and I'm not sure whether it's isolated to /bin/date, or more pervasive in the firmware.  Has anyone else noticed this and investigated?   Is this feature isolated to the date in /bin/busybox?

Duaine

Offline

 

#6 2010-03-10 06:02:31

timezlicer
Member
Registered: 2008-09-02
Posts: 51
Website

Re: dns-321 date comes up 6 hours off?

i am getting the opposite on the DNS-343
/ffp/bin/date returns UTC and /bin/date returns local

Code:

root@DNS-343:~# /ffp/bin/date
Wed Mar 10 04:01:02 UTC 2010
root@DNS-343:~# /bin/date
Wed Mar 10 12:01:06 SGT 2010

talkingRock wrote:

I've have this problem on my dns-321 as well.   

The built in date, /bin/date, seems to ignore the time zone and always give UTC.   
Good news is that /ffp/bin/date works better.    It gives the correct time accounting for the timezone.   
I'm not sure if this is a bug or a feature and I'm not sure whether it's isolated to /bin/date, or more pervasive in the firmware.  Has anyone else noticed this and investigated?   Is this feature isolated to the date in /bin/busybox?

Duaine

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB