Hi Kate,
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. 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.
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.
Hope this helps,
Stephanie
- Replies:
- Re: Setting TZ for RTEMS so that local time is correct Kate Feng
- Navigate by Date:
- Prev:
Re: Maximum (Minimum) Vaue of a Set of Readback PVs kuner
- Next:
Re: Maximum (Minimum) Vaue of a Set of Readback PVs kuner
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
<2003>
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Maximum (Minimum) Vaue of a Set of Readback PVs kuner
- Next:
Re: Setting TZ for RTEMS so that local time is correct Kate Feng
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
<2003>
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|