Assume no DST if tsMinWest is 600 (includes Hawaii and may be exclusively
Hawaii?). (WFL, 95/08/15)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user