update getDate() for scripting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Wishlist
|
gzotti |
Bug Description
I understand that getDate("local") retrieves the computer time, but this is not ideal in-simulation, especially from a scripting standpoint. In a script, I need to know the correct clock time for the simulation location and the correct UTC in order to calculate the correct time offset for the sim location. If my in-sim location is set different than my computer clock, this gives an incorrect time offset. I figured out a workaround, but I shouldn't need one for retrieving the time offset of the in-sim location.
Ideally, getDate("local") should get the in-sim location date and time. I would suggest changing getDate("local") to this behavior, and adding getDate("computer") to perform the existing behavior.
Source: https:/
Changed in stellarium: | |
assignee: | nobody → Bogdan Marinov (daggerstab) |
tags: | added: time |
Changed in stellarium: | |
assignee: | Bogdan Marinov (daggerstab) → nobody |
Changed in stellarium: | |
status: | Fix Committed → Fix Released |
getDate("local") gives the local in-sim date and time.