Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/SiderealPlanets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,11 @@ boolean SiderealPlanets::setGMTdate(int year, int month, int day) {
}

boolean SiderealPlanets::setGMTtime(int hours, int minutes, float seconds) {
if (GMThour == hours && GMTminute == minutes && GMTseconds == seconds) return true; //Already done
//if (GMThour == hours && GMTminute == minutes && GMTseconds == seconds) return true; //Already done
//After setLocalTime() (GMThour == hours) is always true, but GMTtime might still be at another hour.
// If you return from here, the new GMTtime will not be set in line 307, so GMThour and GMTtime might have different hours.
// This produced the error in Issue #8 on 2023-10-01. The time was set to 23-00-00, but the above if statement was true and GMTtime not set as expected.
*/
if (hours < 0 || hours > 23)
return false;
else
Expand Down