Experimental Physics and Industrial Control System
Hi,everyone!
Our epics release is base3.13.8, in July we set environment variables in config/CONFIG_SITE_ENV such as
EPICS_TS_MIN_WEST=-420
EPICS_TS_NTP_INET=***.***.***.***
in order that the IOC's time is the same to the NTP server.
But now, in Feb,when we run the command "date" on the IOC, we find it's late one hour than normal, Because here we have no daylight saving time,so we have to modified the "EPICS_TS_MIN_WEST=-480".
Does that mean we must modify the "EPICS_TS_MIN_WEST" every year? Who know how can cancel the daylight saving time?
I only find some script in the base/src/db/drvTS.c like these:
/*
This section sets up the vxWorks clock for use with the ansiLib
functions. The TIMEZONE environment variable for vxWorks is only
overwritten if it has not been set. It seems as though the day
light saving time does not work (at least following the directions
in ansiLib).
The EPICS environment variable EPICS_TS_MIN_WEST holds the minutes
west of GMT (UTC) time. This variable should be preset by the EPICS
administrator for your site.
*/
if(getenv("TIMEZONE")==(char*)NULL)
{
if(envGetConfigParam(&EPICS_TS_MIN_WEST,sizeof(min_west),min_west)==NULL
|| strlen(min_west)==0)
{
TSprintf("TS initialization: No Time Zone Information\n");
}
else
{
sprintf(tz,"TIMEZONE=UTC::%s:040102:100102",min_west);
if(putenv(tz)==ERROR)
{
TSprintf("TS initialization: TIMEZONE putenv failed\n");
}
}
}
TSdriverInit(); /* Call the user's driver initialization if supplied */
return 0;
}
Best regards
Liushu
Control Group, Accelerator Center
Institute of high energy physics (IHEP)
P.O.Box 918-10,100039
Beijing, P.R.China
Tel: +86-10-88236274-804, Fax: +86-10-88236190
e-mail: [email protected]
Attachment:
pikaqu.gif
Description: GIF image
- Replies:
- Re: about dylight saving time Noboru Yamamoto
- Navigate by Date:
- Prev:
Re: RTEMS-4.7 for uCDIMM module. Eric Norum
- Next:
Re: about dylight saving time Noboru Yamamoto
- 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: RTEMS-4.7 for uCDIMM module. Eric Norum
- Next:
Re: about dylight saving time Noboru Yamamoto
- 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