Skip to content

When converting a date time where the time is '00:00:00' infer returns a date type instead of date time #10

@albertocalderari

Description

@albertocalderari

I.e. strconv.infer('2017-01-01 00:00:01') returns datetime while strconv.infer('2017-01-01 00:00:00') returns a date.

I traced back the issue to if dt.time(): - when dt.time() is 00:00:00 the if returns false and infer a date

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