Tiny Core Linux

General TC => Tiny Core on Virtual Machines => Topic started by: imtiazsp2 on June 19, 2019, 03:36:50 AM

Title: Timezone not working correctly
Post by: imtiazsp2 on June 19, 2019, 03:36:50 AM
When i use waitusb as bootcode with corepure64 the command date gives wrong time in UTC

e.g instead of showing 'Wed Jun 19 07:30:59 UTC 2019' it is showing 'Wed Jun 19 11:30:59 UTC 2019'.  I installed the tzdata.tcz set the link in /etc/localtime to /usr/share/zoneinfo/UTC but still UTC time is wrong.  I need the correct UTC Time.  If I remove bootcode waitusb=5, UTC Time is good.  Any suggestion?
Title: Re: Timezone not working correctly
Post by: Juanito on June 19, 2019, 04:20:23 AM
Could you paste your boot codes used here.

Is your bios clock set to utc or local time?
Title: Re: Timezone not working correctly
Post by: imtiazsp2 on June 19, 2019, 04:40:57 AM
I use corepure64 waitusb=5,that is all.

I am attaching the TinyCore to a virtual machine on HyperV on a Windows Server 2012 and my time is localtime on the Windows Server 2012.
Title: Re: Timezone not working correctly
Post by: Juanito on June 19, 2019, 07:07:43 AM
You could try the "noutc" boot code
Title: Re: Timezone not working correctly
Post by: imtiazsp2 on June 19, 2019, 07:50:20 AM
Still not good
Title: Re: Timezone not working correctly
Post by: Juanito on June 19, 2019, 08:12:04 AM
I just tried CorePure64 inside the qemu vm - using "noutc" makes no difference to the time in the vm.

I note that qemu has a command to set the vm time to utc or local time, maybe your vm has a similar command?