Skip to content

timeshifts can occur due to re-taking datetime.now in sub procedures #47

Description

@rrozema

datetime.now() is used in multiple places to determine state changes and also to calculate time periods. Because some subroutines determine a new value for "now", instead of using the same value as it's caller, small errors will occur in the times used. Accumulated these small errors in time result in small errors in the calculated constants.

A fix is to determine "now" only once per "run".

I will post a pull request soon.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions