core.setDate does not work properly for relative dates

Bug #1310009 reported by Khalid AlAjaji
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Low
Alexander Wolf

Bug Description

0.12.4 and test release 0.13.0dev4-win32

When using the script function core.setDate to advance the time it seems to add 1 minute and 6 seconds.

Example:
core.setTimeRate(0);
core.setDate("2011:12:10T15:00:00");
core.wait(2);
core.setDate("+10 seconds")

The resulting time is 2011-12-10 15:01:16

If minutes are used

core.setDate("+10 minutes")

The resulting time is 2011-12-10 15:11:06

Tags: scripting

Related branches

tags: added: scripting
Revision history for this message
Alexander Wolf (alexwolf) wrote :

This effect given deltaT correction. If you want compatibles to 0.11 behaviour then you can disable deltaT correction.

Example: core.setDate("+10 minutes", "UTC", false);

Changed in stellarium:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Bogdan Marinov (daggerstab) wrote :

Or you can wait for me to clean up the bloody DeltaT code.

Revision history for this message
Khalid AlAjaji (kajaji) wrote :

Thanks Bogdan. At least, there is a workaround for now.

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Starting with version 0.13.2 all relative dates are set without DeltaT correction.

Diff: http://bazaar.launchpad.net/~stellarium/stellarium/trunk/revision/7332

Changed in stellarium:
milestone: none → 0.13.2
assignee: nobody → Alexander Wolf (alexwolf)
status: Confirmed → Fix Committed
Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.