ni / ni/datastore-python

Create result requires that I provide UTC time

Open
#110 1 comment 1 reaction 2 assignees View on GitHub

@csjall is already working on this.

Since Feb 19, 2026.

bug
Dominant language
Python
Stars
2
Forks
0
Avg merge
1d 14h
Merged PRs (30d)
6

Description

Trying to call create_test_result with the following code will throw an error that the start and end times have to be in utc. The python API should allow me to provide local time and internally convert to utc.

test_result = TestResult(
        name="name",
        start_date_time=datetime.now(),
        end_date_time=datetime.now(),
        outcome=Outcome.PASSED,
    )

AB#3746793

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.