Skip to content

Description of log_metrics and log_events should mention that timestamps are in UTC #869

Open

Description

@alahiff
No description provided.

Activity

  1. kzscisoft commented on Oct 7, 2025

    @kzscisoft
    Collaborator

    I am wondering if perhaps the log_event method is too "loose" constraint wise as it trusts the user to provide the timestamp in the form expected by the server, perhaps this method should instead take a datetime object?

  2. self-assigned this
    on Oct 7, 2025
  3. added theissue type on Oct 7, 2025
  4. kzscisoft commented on Oct 7, 2025

    @kzscisoft
    Collaborator

    You could use:

    from dateutil import parser
    
    dt = parser.parse("2025-10-07")
    print(dt)

    to "smartly" detect the format but this will affect performance.

  5. kzscisoft commented on Oct 7, 2025

    @kzscisoft
    Collaborator

    Simplest solution is to attach a validator to the input, I will do that

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions