Hello Folks --
I am a novice Pascal coder working in Windows 10, Lazarus v 2.0.6, FPC v 3.0.4. I plan on writing an application for which the Laz package called "delphimoon" (tmoon_laz.lpk) is perfect for my use. The original package was written for Delphi by Andreas Hörstemeier. I downloaded from this site [https://github.com/Ahoerstemeier/delphimoon] the latest available version (The latest I could find, 13-Feb-2018, which includes a translation from Delphi to Lazarus/FPC).
Before using the package in my application, I compiled and began testing the demo "NewMoonTool". I think I discovered a bug in the demo in the calculation of "Sun Transit" for certain date/location combinations that I have not been able to track down. Can anyone find the problem and provide a fix?
Here is the issue:
Package: tmoon_laz.lpk
Application: "NewMoonTool" or moon.pas
Example Location: W 77° 0' 0", N 39° 0' 0"
Example Dates: 2019 Dec 7 through 10
ERROR: Sun transit displays "---", should be approx "17:00 UTC"
Most other Date/Location combinations produce correct results.
(There may be other Date/Location combinations that fail.)
Any assistance would be greatly appreciated.