[yocto] [poky] Fwd: How to make the os-release package work with local walltime instead of GMT?

Andre McCurdy armccurdy at gmail.com
Thu Jan 18 11:15:32 PST 2018


On Mon, Jan 15, 2018 at 9:20 PM, Trevor Woerner <twoerner at gmail.com> wrote:
> On Thu, Jan 11, 2018 at 12:26 AM, Robert Yang <liezhi.yang at windriver.com>
> wrote:
>>
>> BUILD_ID = "${@time.strftime('%Y-%m-%d %H:%M:%S',time.localtime())}"
>
> Brilliant! Why isn't this the default?

Using localtime could cause confusion for teams which span different time zones.

Even if everyone is in the same time zone, it can also give unexpected
results when entering or leaving daylight savings time.



More information about the yocto mailing list