Skip to contentSkip to conversation

Timestamps in local time instead of UTC

DISCUSSION Dominic Sacré 1 participant 1 message Oct 3, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to get my builds to use timestamps in local time rather than UTC. In order to do that, I've added the following to my local.conf, as had been suggested on this list before:

DATE := "${@time.strftime('%Y%m%d',time.localtime())}" TIME := "${@time.strftime('%H%M%S',time.localtime())}"

Now, if I run "bitbake -e", I can see that my setting takes precedence over Bitbake's default, and all timestamps are in local time. However, when I actually build a target, all timestamps are still in UTC.

Why doesn't "bitbake -e" reflect the actual environment of the build? And is there a way to achieve what I'm trying to do?

Thanks,
Dominic