mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
In normal message get, the returned format is RFC3339Nano, which is what is being used when using JSON marshaling. However, for the direct get we had to pass a string to construct the header and we were using time.Time.String() which was using a different layout. So use time.Time.MarshalJSON() to be consistent with the non-direct get message. Libraries that already parsed the non RFC3339Nano time format can be updated since none should have been released yet (since the feature in the server is not released yet) Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
128 KiB
128 KiB