EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Setting TZ for RTEMS so that local time is correct
From: Kate Feng <[email protected]>
To: "Allison, Stephanie" <[email protected]>
Cc: [email protected]
Date: Tue, 24 Jun 2003 15:49:25 -0400
Hello Allison,

"Allison, Stephanie" wrote:

> At the meeting, you mentioned that you modify rtems_bsdnet_timeoffset in EPICS base osdTime.cpp in order to get the correct local time for your time zone.

I meant that the RTEMS has no notion of timezone, which depends on the user to set the
local timezone.  I used the  rtems_bsdnet_timeoffset for  a  ten-minute quick fix because I  was
aware of the bug in the  tzset().  I  saw the bug-fix message Till posted in the RTEMS
user-list, too.  To get it working in my application,   I will have to rebuild  the tool-chain,
rebuild the MVME2306 bsp, and rebuild the  GeSys for the MVME2306 version of rtems-cexp,
which  I believe Till  had done all these  for the SVGM boards that SSRL  are  using.  It
will take me more than  half  a day to get this done, which became a low priority  task for me.
At the meeting,  you mentioned it is not easy to rebuild RTEMS.  I think
you really meant it is not easy to build the RTEMS-CEXP package for a BSP.


> Till Straumann added these commands to our shared Cexp startup file so that our local time (pacific (left coast) time in our case) is correct:
>
> setenv("TZ","PST8PDT",1)

>
> tzset()
>
> Note that for RTEMS (as for the other posix systems), EPICS_TIMEZONE is not used and TZ must be set instead.

Great!  This is a helful reference.  Thanks a lot.

>
>
> Till found a little bug in tzset which he fixed and documented here:
> http://www.oarcorp.com/rtems/maillistArchives/rtems-users/2003/may/msg00168.html
> It will be fixed in the next newlib release.
>

Regards,
Kate



References:
Setting TZ for RTEMS so that local time is correct Allison, Stephanie

Navigate by Date:
Prev: Segmentation faults and the ioc example Geoff Savage
Next: epics base/include directory on compile line Geoff Savage
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Setting TZ for RTEMS so that local time is correct Allison, Stephanie
Next: Segmentation faults and the ioc example Geoff Savage
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·