Assume no DST if tsMinWest is 600 (includes Hawaii and may be exclusively

Hawaii?). (WFL, 95/08/15)
This commit is contained in:
Janet B. Anderson
1995-10-19 13:54:50 +00:00
parent ecb106fb71
commit 2f5202a4e4

View File

@@ -807,6 +807,13 @@ struct tsDetail *pT; /* I pointer to time structure to convert */
else if (pT->dstOverlapChar == 'd')
dst = 1;
}
/*----------------------------------------------------------------------------
* assume no DST if tsMinWest is 600 (includes Hawaii and may be
* exclusively Hawaii?). (WFL, 95/08/15)
*----------------------------------------------------------------------------*/
if (tsMinWest == 600)
dst = 0;
if (dst)
stamp.secPastEpoch -= TS_DST_HRS_ADD * 3600;
stamp.secPastEpoch += tsMinWest*60;
@@ -869,6 +876,13 @@ struct tsDetail *pT; /* O pointer to time structure for conversion */
dst = 1;
}
/*----------------------------------------------------------------------------
* assume no DST if tsMinWest is 600 (includes Hawaii and may be
* exclusively Hawaii?). (WFL, 95/08/15)
*----------------------------------------------------------------------------*/
if (tsMinWest == 600)
dst = 0;
/*----------------------------------------------------------------------------
* now, if necessary, change the time stamp to daylight and then convert
* the resultant stamp to local time.