AstroCalc: Fix RTS#3028
Conversation
|
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
|
Thank you very much for the fix! I see sentences “previous day/next day” - why not “yesterday/tomorrow”? |
It makes sense if current day is not the realtime "today", and not even a simulated "today". |
This actually came across my mind at one point during development. But I though the same with @10110111 that it's mostly simulated time. Using yesterday/tomorrow may not make sense. |
OK, I got it |
|
Many thanks for this. |
I'm thinking about another way that might be better. Create getRTSTimeOfDate() that returns RTS of current date (doing it inside getRTSTime() may be too complicated). |
|
OK. Just that the InfoMap always needs updates in line with the InfoString. |
|
I'm ditching the idea of displaying 'previous day' or 'next day'. It was proposed earlier because that is an easy way with minimal tweak in existing codes. But it becomes more complicated for StelObject::getInfoMap(). New update will show RTS that occur on current date only (RTS will change at midnight, not seem to change in unpredictable way during a day like before). It also makes more sense and in line with the way they show RTS in astronomical almanacs. Please check StelObject::getInfoMap() to see if it's okay with new changes because I'm not familiar with its structure. Update: Made it draft because there is a potential bug for non-solar system objects. |
|
Hmm... I see serious regress of performance on the Mac when the Moon is selected |
|
Thanks @alex-w. I have no performance hit so I'm not sure it's getting better or not. The new update should work now for all objects. |
|
Hello @worachate001! The enhancement or feature has been merged into source code and you may test it via building Stellarium from source code or wait the weekly development snapshot... |
|
Hello @worachate001! The fix has been merged into source code and you may test it via building Stellarium from source code or wait the weekly development snapshot... |
|
Hello @worachate001! Please check the fresh version (development snapshot) of Stellarium: |
|
Hello @worachate001! Please check the latest stable version of Stellarium: |
Description
The problems are:
This PR will fix them by:
Fixes #2990 and remaining issue in #1482
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: