We have found a following behavior on \Google\Cloud\Spanner\Timestamp::formatAsString()
Is this correct?
$conn = $this->getSpannerConnection();
$row = $conn->getSpannerDatabase()->execute('SELECT TIMESTAMP("2018-03-13T16:40:12.300000Z")')->rows()->current();
/** @var Timestamp $ts */
$ts = $row[0];
$this->assertEquals('2018-03-13T16:40:12.300000Z', $ts->formatAsString());
Failed asserting that two strings are equal.
Expected :'2018-03-13T16:40:12.300000Z'
Actual :'2018-03-13T16:40:12.000003Z'
@castaneai, thanks for the report. I'll work on getting this resolved.
This has been fixed in v0.62.0.
Most helpful comment
@castaneai, thanks for the report. I'll work on getting this resolved.