Page 1 of 1

raspi-config time wrong?

Posted: Sat Apr 16, 2016 5:14 am
by feverish
Our first delivery of Raspi3's having arrived safely in Belize, courtesy of the use of the safe and dependable UK GPO parcel-tracking service by a generously helpful third party, after, wrongly, PiHut had declared trade with Belize was unviable for reasons that various South American Spanish-speaking countries made shipping losses too great, so they embargoed Belize. Someone is orchestrating the same embargo but with the cooperation of authorities in Belize and UK we're slowly exposing the so-called 'reasons' given for what they are, simply false.
Belize being a lonely English-speaking country, surrounded by Spanish-speaking countries, has a time standard year-round of six hours behind GMT and one of the first tasks after the 3's arrival was to set the displayed time. Raspi-config does not include Belize, and trying a <sudo raspi-config> international timezone setting for a 'none of the above' GMT-6 displayed a time 12 hours out of true.
Using <sudo date -s "Fri Apr 15 22:00:00"> to set the time from the terminal did display the correct local time but described it as GMT+6.
Using the same terminal method on one of our original Raspi2 B+'s both displayed the correct time and described it as GMT-6.
Are we correct in blaming the current version of NOOBS' raspi-config for setting up the time wrongly? We downloaded it and copied it locally to the SD cards we used.

Posted: Sat Apr 16, 2016 5:26 am
by fruit-uk

Re: raspi-config time wrong?

Posted: Sat Apr 16, 2016 5:36 am
by jojopi
raspi-config/tzdata does include Belize. It is called America/Belize.

"date +%z" describes zones west of Greenwich like "-0600", but POSIX says that TZ offsets are positive for west. So it is correct that you must select GMT+6 but then see -0600.

Normally you should avoid fixed offsets and use the tzdata locations, because they handle political changes. In your case that only matters for historical dates, because Belize has not applied daylight savings since 1983.


Posted: Sat Apr 16, 2016 6:17 pm
by feverish
Thank you for that off-forum pointer. I am quite sure that raspi-config works as I described but now understand that 'GMT+6' in raspi-config is not intended to mean 'six hours ahead of GMT' but '6 hours to the WEST of the Greenwich GMT timezone'. Please pardon me for having been confused by the use of that jargon..

Re: raspi-config time wrong?

Posted: Sat Apr 16, 2016 6:25 pm
by feverish
jojopi wrote:raspi-config/tzdata does include Belize. It is called America/Belize.
So it does, thank you. 'GMT+6' in one place actually meaning 'GMT-6' in another rather confused my geriatric mind.