RetroBSD

2.11BSD operating system for microcontrollers
It is currently Tue Jun 25, 2019 11:35 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: timezone - issue
PostPosted: Sat Oct 17, 2015 8:43 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
I set the timezone in the config
Code:
timezone -1 dst 4

that means MET and dst of type 4.

When trying to set the local date, I set GMT with -u and I expect the date will show my local time properly:
Code:
Welcome to 4.4BSD-Lite!

erase ^H, kill ^U, intr ^C status ^T
Don't login as root, use the su command.
# date
Sat Oct 10 14:58:47 PDT 2015
# date -u 1510170837.30              <<<<<<<<<<< GMT
Sat Oct 17 08:37:30 GMT 2015
# date           
Sat Oct 17 01:37:40 PDT 2015      <<<<<<<<<<<< it is not MET (GMT+2)
#

Code:
erase ^H, kill ^U, intr ^C status ^T
Don't login as root, use the su command.
# date
Sat Oct 10 14:58:55 PDT 2015
# date -u 1510170848.30 -t -60 -d 4
Sat Oct 17 08:48:30 GMT 2015
# date
Sat Oct 17 01:48:39 PDT 2015
#

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: timezone - issue
PostPosted: Sat Oct 17, 2015 9:13 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
:? I did it manually:
Code:
# ln -s /usr/share/zoneinfo/MET /etc/localtime
# date
Sat Oct 17 10:10:16 MET 2015
# date -u
Sat Oct 17 09:10:28 GMT 2015
#

or
Code:
# export TZ="MET"

Now, how to set dst..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: timezone - issue
PostPosted: Sun Oct 18, 2015 8:57 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
I updated the European timezones: daylight rules had changed since 4.4bsd release. See commit 4c0590f. Now it seems to work correctly:
Code:
# TZ=CET
# export TZ
# date
Sun Oct 18 22:23:18 CEST 2015
#


Top
 Profile  
 
 Post subject: Re: timezone - issue
PostPosted: Mon Oct 19, 2015 7:18 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Code:
# date -u 1510191912.55
Mon Oct 19 19:12:55 GMT 2015
# date
Mon Oct 19 19:13:05 GMT 2015
# export TZ="CET"
# date
Mon Oct 19 21:15:49 CEST 2015
#

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: timezone - issue
PostPosted: Tue Oct 20, 2015 2:50 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Looks good.


Top
 Profile  
 
 Post subject: Re: timezone - issue
PostPosted: Tue Oct 20, 2015 6:17 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
We will see Sunday this week :)
PS: The same issue in retrobsd I think.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: timezone - issue
PostPosted: Tue Oct 20, 2015 8:42 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
As for RetroBSD, the recent version (rev417) should have the timezone files updated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission