On 19/08/17 12:23, Nan Xiao wrote:
> Hi all,
>
> Greetings from me! I am a newbie of OpenBSD, and come across
> a confusion of setting date during installation:
>
> I install OpenBSD on VirtualBox and host machine is ArchLinux.
> During setup, it prompts me:
>
> > What timezone are you in? ('?' for list) [Asia/Singapore]
...
>
> After installation, I use "date" command to check time:
>
> #date
> Sat Aug 19 03:57:14 GMT 2017
>
> The time is correct. But after reboot. The time changes:
>
> #date
> Sat Aug 19 20:01:00 +8 2017
> #date
> Sat Aug 19 12:01:05 UTC 2017
Hi and welcome,
Did you do something between these two commands? My own date displays thus:
$ date
Sat Aug 19 08:15:55 BST 2017
$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES=en_GB.UTF8
LC_ALL=
and is as expected for the United Kingdom. The system usually displays
the locale date. Whenever there is a problem the first thing to do is to
read the relevant manpage and faq. The developers spend a lot of time
keeping the manpages right so that is always the first thing to do. They
are way superior to all linux systems I have seen.
$ man 1 date
$ man 1 locale
I don't understand how this has arisen on your installation.
Good Luck
Moss