CZML extractor: timezone issues (clock.Interval and currentTime not tz-aware) #817
Comments
The problem seems to be that we are prematurely converting the dates to strings:
poliastro/src/poliastro/czml/extract_czml.py Lines 80 to 81 in 1ddf2d5
Which is probably not necessary, because
(unlike
) Therefore, I suggest that we remove |
Can I take up this issue? |
Hi @sundeshgupta, sure all yours! |
Hi @Juanlu001 . Since I am a beginner here, I need some help solving this issue.
Any comments on this? |
In case you missed my comment, could you please take a moment to look at my previous comment. |
Hi @sundeshgupta, sorry for the delay! If I understood correctly, you propose replacing this: poliastro/src/poliastro/czml/extract_czml.py Line 179 in 1ddf2d5
with I think it would work as a workaround for the current limitations of the Do you want to open a pull request with this fix, including a unit test for it? |
Yes, this is what I propose.
Sure. I will open the pull request resolving this issue. |
Added blank line Updated the test Updated existing tests Updated timezone format for 'epoch' and corresponding tests Removed redundant test Fixed issue poliastro#817 Added blank line Updated the test Removed redundant test Squashed and rebased
CZML extractor: timezone issue #817
Fixed! If anybody wants to send a pull request to czml3 so that |
馃悶 Problem
The ISO8601 timestamps in the
clock.interval
andcurrentTime
fields by the czml extractor are missing the 'Z' character indicating UTC. As a result, when the users locale is UTC+1 the CZMLWidget will start one hour too early (so that the satellites will only be visible after one hour passed in the simulation.Example notebook
馃枼 Envorionment
pip freeze
poliastro==0.13.post0.dev0
馃挕 Possible solutions
czml3.types.TimeInterval
to have also a_value
likeIntervalValue
has. Then useczml3.types.TimeInterval
instead ofczml3.types.IntervalValue
in extract_czml.py#L174-L181:czml3.types.TimeInterval
into the relevant section inextract_czml.py
A similar issue was fixed in #783.
The text was updated successfully, but these errors were encountered: