By default, an OpenWRT router operates in the UTC (Universal Time Coordinate) time zone.
OpenWRT stores the time zone inside a file named
/etc/TZ. If this file is missing or empty, OpenWRT assumes the local time equals UTC time. The format is pretty strange, and has the following syntax:
syntax ::= GMT
offset ::= (+|-)
hour ::= [ 00 - 12 ]
is the value you must add to or substract from the local time to get the UTC time. This offset will be positive if the local time zone is west of the Prime Meridian and negative if it is east. For example, TZ must be set to GMT-1 for Madrid, which is GMT+1:
# echo GMT-1 > /etc/TZ
UPDATED: The syntax for the TZ variable is documented here.
Following this document, the correct contents for file
/etc/TZ when located in Madrid would be:
8 thoughts on “OpenWRT and Time zone”
would be more correct. See:
Pingback: metti il crontab alla caldaia
It is worth noting that CET-1CEST-2,M3.5.0/2,M10.5.0/3 works for all EU-contries that use CET. The dates (M3.5.0/2,M10.5.0/3) have been the same for all EU countries (and Norway) since 1996.
sarcasm abounds,……………hardly unpredictably,…………………and while I am as aghast
as most,…………………quiet pain seems most appropriate,……………for the mean time,
Throughout the awesome design of things you receive a B+ for hard work. Exactly where you lost everybody ended up being on your particulars. As people say, the devil is in the details… And it could not be more true in this article. Having said that, allow me say to you what exactly did deliver the results. The text is actually rather engaging and that is possibly the reason why I am taking an effort to comment. I do not make it a regular habit of doing that. 2nd, even though I can easily notice a leaps in logic you make, I am not really sure of exactly how you seem to unite the ideas which make the conclusion. For right now I will, no doubt yield to your position but hope in the near future you actually link the dots much better.
For Mr. “Do What?” To correct you. The last BORTAC selection course had a BORSTAR member graduate. BORSTAR members have attended and graduated several of the last BORTAC selection courses. Therefore your last comments stand corrected.
Can I just say what a relief to search out someone who truly is aware of what theyre talking about on the internet. You definitely know how to deliver an issue to gentle and make it important. Extra people need to read this and understand this side of the story. I cant believe youre not more standard because you definitely have the gift.