Skip to content

Issue Parsing a timestamp string outputed by the formatter based on a UTC +00 time.Date  #1072

@stephanvanzwienen

Description

@stephanvanzwienen

When 'FormatTimestamp' receives an time.Date with an offset of 0 , it outputs an timestamp string that looks like this "2001-02-03 04:05:06.123456789Z". Ending with a 'Z' timezone separator char.

I expect that when passing that timestamp string to the ParseTimestamp function will return the same time.Date as we gave to FormatTimestamp func.

But currently the parseTimestamp function returns the following error expected end of input, got Z. This shouldn't be the case as the "2001-02-03 04:05:06.123456789Z" is a valid timestampstring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions