mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-23 10:13:42 +02:00
use github.com/shufflingpixels/jsontime-go instead of github.com/eosswedenorg-go/jsontime
This commit is contained in:
parent
2b3dc35393
commit
a466392b84
6 changed files with 13 additions and 11 deletions
|
|
@ -1,12 +1,14 @@
|
|||
package json
|
||||
|
||||
import (
|
||||
jsontime "github.com/eosswedenorg-go/jsontime/v2"
|
||||
"time"
|
||||
|
||||
"github.com/eosswedenorg/thalos/api/message"
|
||||
"github.com/shufflingpixels/jsontime-go"
|
||||
)
|
||||
|
||||
func createCodec() message.Codec {
|
||||
json_codec := jsontime.ConfigWithCustomTimeFormat
|
||||
json_codec := jsontime.New("2006-01-02T15:04:05.000", time.UTC)
|
||||
|
||||
return message.Codec{
|
||||
Encoder: json_codec.Marshal,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue