[bitbake-devel] [PATCH 1/1] toaster: fix timezone detection

Burton, Ross ross.burton at intel.com
Wed Mar 12 19:53:41 UTC 2014


On 12 March 2014 18:49, Damian, Alexandru <alexandru.damian at intel.com> wrote:
> This is a Debian-ism :(
>
> Does toaster show you improper times, or refuses to start ?

I've never tried Toaster, but I'm in GMT so I wouldn't be able to tell :)

It may be a Debianism but TZ isn't set at all so that's equally
unreliable.  I wonder what time.tznames is actually doing.

/etc/localtime was originally a Debianism but is also the canonical
file that systemd handles, so it's got a much wider install base now.
The similar file that Fedora has used to be /etc/sysconfig/clock.

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/jana/trusty/view/head:/libjana-ecal/jana-ecal-utils.c#L113
is the first hit for some code I was involved in some time ago that
tried to work everywhere.  It's probably bitrotted quite dramatically
though...

Ross



More information about the bitbake-devel mailing list