WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Timezone not working correctly  (Read 1116 times)

Offline imtiazsp2

  • WikiUser
  • *
  • Posts: 3
Timezone not working correctly
« on: June 19, 2019, 12: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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 11029
Re: Timezone not working correctly
« Reply #1 on: June 19, 2019, 01:20:23 AM »
Could you paste your boot codes used here.

Is your bios clock set to utc or local time?

Offline imtiazsp2

  • WikiUser
  • *
  • Posts: 3
Re: Timezone not working correctly
« Reply #2 on: June 19, 2019, 01: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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 11029
Re: Timezone not working correctly
« Reply #3 on: June 19, 2019, 04:07:43 AM »
You could try the "noutc" boot code

Offline imtiazsp2

  • WikiUser
  • *
  • Posts: 3
Re: Timezone not working correctly
« Reply #4 on: June 19, 2019, 04:50:20 AM »
Still not good

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 11029
Re: Timezone not working correctly
« Reply #5 on: June 19, 2019, 05: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?