| 886 | // for special case time zones and Daylight autodetection. |
| 887 | |
| 888 | real GetOffsetCI(CONST CI *pci) |
| 889 | { |
| 890 | real zon = pci->zon, dst = pci->dst, jd; |
| 891 | |
| 892 | if (zon == zonLMT) |
| 893 | zon = pci->lon / 15.0; |
| 894 | else if (zon == zonLAT) { |
| 895 | jd = (real)MdyToJulian(pci->mon, pci->day, pci->yea); |
| 896 | zon = pci->lon / 15.0 - SwissLatLmt(jd); |
| 897 | } |
| 898 | dst = DstReal(dst); |
| 899 | return zon - dst; |
| 900 | } |
| 901 | |
| 902 | |
| 903 | // Adjust chart info to have a new time zone and Daylight value. Change its |
no test coverage detected