Re: [yocto] Yocto uses UTC time for DATETIME instead of localtime

2018-06-05 Thread Григорьева Алёна Вадимовна
Hello, Davis Roman! The only way to change ${DATE} and ${TIME} is to change python function: def buildSetVars(self): """ Setup any variables needed before starting a build """ t = time.gmtime() < here use localtime() if not

Re: [yocto] Yocto uses UTC time for DATETIME instead of localtime

2018-02-15 Thread Burton, Ross
On 12 February 2018 at 04:24, Davis Roman wrote: > DATE := "${@time.strftime('%Y%m%d',time.localtime())}" > TIME := "${@time.strftime('%H%M%S',time.localtime())}" > > > Can you suggest a different way of making this change? > Use bitbake -e to see if there's a good

Re: [yocto] Yocto uses UTC time for DATETIME instead of localtime

2018-02-11 Thread Davis Roman
Hi Trevor, Thank you for taking the time to reply. You are correct. I did ask this question this question before and unfortunately the issue is not so much that the answer was incorrect but that I realized that the answer did not entirely fix my original problem in a global manner. ( BTW, I

Re: [yocto] Yocto uses UTC time for DATETIME instead of localtime

2018-02-11 Thread Trevor Woerner
On Sun, Feb 11, 2018 at 7:30 PM, Davis Roman wrote: > I'm using the DATETIME variable to generate timestamps for my final images > however I see that yocto is using UTC time. > > I'd much prefer if yocto used localtime. > > Any suggestions on how to change this? > > You

[yocto] Yocto uses UTC time for DATETIME instead of localtime

2018-02-11 Thread Davis Roman
Hello, I'm using the DATETIME variable to generate timestamps for my final images however I see that yocto is using UTC time. I'd much prefer if yocto used localtime. Any suggestions on how to change this? Thank you, Davis -- ___ yocto mailing list