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.
When
'FormatTimestamp'
receives antime.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 sametime.Date
as we gave toFormatTimestamp
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.