Skip to content

Import of historical energy data fails for timezones with +30 offset #24

Description

@dns53

I live in Adelaide South Australia and we have are UTC+9:30.
When going to the developers tab and running the import historical data action with the date set to midnight the action fails with the following error:
Failed to perform the action isolarcloud.import_historical_data. Invalid timestamp: timestamps must be from the top of the hour (minutes and seconds = 0)

Changing the start time to 0:30:00 and the end time to 0:30:00 the task will run without error.
You probably need to take in to account timezones and add a few minutes to make it align with the hour.
Also note that +08:45 and +05:45 are also valid timezones so you might also need to fix it for them just in case.

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