EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  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  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: 3.13.6 daylight-savings follies
From: Andrew Johnson <[email protected]>
To: "Laznovsky, Michael" <[email protected]>
Cc: Jeff Hill <[email protected]>, EPICS tech-talk <[email protected]>
Date: Mon, 05 Mar 2007 15:51:50 -0600
Laznovsky, Michael wrote:
What about all the stuff in extensions/ (like camonitor), which link to tsSubr.c? Won't they get the time wrong for a while even though they may be running on Solaris machines with the correct idea of what time it is?

Most of those should be available built against R3.14, and if you haven't upgraded to those versions yet you may have some work to do... However if the R3.14 versions are still using the old tsSubr.c code by linking against the compatibility library in extensions/src/ts then you'll need to update that code with these definitions:


#define TS_DST_BEGIN (59+14)    /* second Sun in Mar (Mar 1 = 59) */
#define TS_DST_END -304         /* first Sun in Nov (Nov 1 = 304) */


--------------------------------------------------------------------------------
./camonitor/camonitor.c
--------------------------------------------------------------------------------
   287:   (void)tsStampToText(&cdData->stamp, TS_TEXT_MMDDYY, timeText);

We ship a camonitor in R3.14 Base, although it probably has different arguments. You'll probably need to fix and rebuild base for your version if it's using the code from libCom.


--------------------------------------------------------------------------------
./dm2k/dm2k/dm2kCdev.h
--------------------------------------------------------------------------------
   153: char * dm2k_tsStampToText (cdev_TS_STAMP* ts, int type, char* buffer);
   155: #define tsStampToText dm2k_tsStampToText

--------------------------------------------------------------------------------
./medm/medm/medmCdev.cc
--------------------------------------------------------------------------------
  1156: medm_tsStampToText (cdev_TS_STAMP* ts, int type, char* buffer)
  1254: 	      tsStampToText(&timeVal.stamp,TS_TEXT_MONDDYYYY,tsTxt));

--------------------------------------------------------------------------------
./medm/medm/medmCdev.h
--------------------------------------------------------------------------------
   155: char * medm_tsStampToText (cdev_TS_STAMP* ts, int type, char* buffer);
   157: #define tsStampToText medm_tsStampToText

If you look at those carefully the routines {dm2k,medm}_tsStampToText() are provided locally and written in terms of the OS localtime() routine, and are then #defined to be used wherever tsStampToText is called (which it doesn't seem to be anyway). I'm going to assume that the dm2k code is the same as the medm code that I looked at.


..... and many more (ChannelWatcher, Ezca, osiTimeHelper.cpp, ar, ca, caTCL, cau, syd/*)

You will need to check and probably rebuild them all if they're still building against R3.13.


Janet just checked our R3.14 extensions here, and we're only building ar and cau that need the ts library. We'll be rebuilding both of them with a patched extensions libts.a file before next weekend.

- Andrew
--
The right to be heard does not automatically include
the right to be taken seriously. -- Hubert H. Humphrey

References:
3.13.6 daylight-savings follies Laznovsky, Michael

Navigate by Date:
Prev: RE: 3.13.6 daylight-savings follies Laznovsky, Michael
Next: Obituary for Coles SIbley who worked with our community at MIT Bates and Oak Ridge National Lab Dalesio, Leo `Bob`
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: 3.13.6 daylight-savings follies Laznovsky, Michael
Next: Java support for DST time zone changes Thomas Pelaia II
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·