Problem: Incorrect GMT/UTC time being given by my router.

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
COG
DD-WRT Novice


Joined: 11 Feb 2011
Posts: 28

PostPosted: Tue Apr 24, 2012 14:06    Post subject: Problem: Incorrect GMT/UTC time being given by my router. Reply with quote
Hi:

My router is giving me incorrect GMT/UTC time, and I need help with what is going on here:

I have the following setup:
Router: ASUS RT-N16
Firmware: DD-WRT v24-sp2(12/20/11)mega - build 18024
System Clock set to use: NPT; Time Zone = UTC-04:00; Server IP/Name: 3.north-america.pool.ntp.org
Optware the Right Way Installed: Yes

Problem:
When I run both of these Linux commands I get the same time being reported when there should be a difference of 4 hours.

# date ==> Tue Apr 24 09:51:41 UTC 2012
# date --utc ==> Tue Apr 24 09:51:41 UTC 2012

When I run these same commands on my Linux desktop, I get the correct results (a difference of 4 hours).


Queries/Request:
(i) I would appreciate if someone could help me with what is going on here?
(ii) Can anybody please test their router and let me know if they have this same problem?
(iii) If you have firmware version ‘18774’ (ftp://dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2012/03-19-12-r18777/broadcom_K26/dd-wrt.v24-18774_NEWD-2_K2.6_mega.bin) or one that is later than mine, could you please check for me and see if the problem still exist?

Thanks
Sponsor
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1558
Location: Zwolle

PostPosted: Tue Apr 24, 2012 15:46    Post subject: Reply with quote
DD-WRT time settings can be problematic. You could use plain UTC (with no daylight savings), and then the problem would be over.
_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


COG
DD-WRT Novice


Joined: 11 Feb 2011
Posts: 28

PostPosted: Tue Apr 24, 2012 16:08    Post subject: Reply with quote
Yea, but then the local time would be wrong.
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1558
Location: Zwolle

PostPosted: Tue Apr 24, 2012 16:24    Post subject: Reply with quote
http://g300nh.blogspot.com/2010/06/set-dd-wrt-to-use-local-time.html
_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7643

PostPosted: Tue Apr 24, 2012 16:32    Post subject: Reply with quote
dd-wrt doesn't have the timezone list containing cities and timezone abbrevation, this due to space limitations.

A timestamp is incomplete without the timezone info, dd-wrt can do the subtraction or addition but displays everything as UTC.

You either

a) adjust your clock so it matches UTC Zero

or

b) adjust your clock to match your timezone and ignore the three letters afterwards.

_________________
Kernel panic: Aiee, killing interrupt handler!
Tron77
DD-WRT Novice


Joined: 22 Apr 2017
Posts: 2

PostPosted: Sat Apr 22, 2017 13:06    Post subject: Try this FIX Reply with quote
I had the same issue, I just used the time location list to match the a country\location so the time was close\similar to my actual time (though still out by 40min). Then saved and rebooted. Then I when back into basic settings and change the time settings to the correct location match...Wallla all fixed, time is synced correctly Very Happy
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1887
Location: Hung Hom, Hong Kong

PostPosted: Wed May 03, 2017 15:28    Post subject: Reply with quote
LOM wrote:
dd-wrt doesn't have the timezone list containing cities and timezone abbrevation, this due to space limitations.

A timestamp is incomplete without the timezone info, dd-wrt can do the subtraction or addition but displays everything as UTC.

Could you just copy the timezone file from a standard Linux distribution (Ubuntu, Fedora, or whatever ...) into DD-WRT and setup the timezone manually?

http://www.thegeekstuff.com/2010/09/change-timezone-in-linux

I think it worth a try... Wink

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
ea1ddo
DD-WRT Novice


Joined: 09 Dec 2010
Posts: 4

PostPosted: Thu Nov 09, 2017 17:53    Post subject: Reply with quote
Is this NTP time used just for the router needs?
Or is that NTP information "sent" out by DHCP to any conputer connected to the router?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum