committed by
Ralf Haferkamp
parent
e270cdbfd2
commit
b5b15f29de
+11
@@ -10,6 +10,7 @@ import (
|
||||
"github.com/shamaton/msgpack/v2/internal/encoding"
|
||||
streamdecoding "github.com/shamaton/msgpack/v2/internal/stream/decoding"
|
||||
streamencoding "github.com/shamaton/msgpack/v2/internal/stream/encoding"
|
||||
"github.com/shamaton/msgpack/v2/time"
|
||||
)
|
||||
|
||||
// StructAsArray is encoding option.
|
||||
@@ -82,3 +83,13 @@ func RemoveExtStreamCoder(e ext.StreamEncoder, d ext.StreamDecoder) error {
|
||||
func SetComplexTypeCode(code int8) {
|
||||
def.SetComplexTypeCode(code)
|
||||
}
|
||||
|
||||
// SetDecodedTimeAsUTC sets decoded time.Time values to UTC timezone.
|
||||
func SetDecodedTimeAsUTC() {
|
||||
time.SetDecodedAsLocal(false)
|
||||
}
|
||||
|
||||
// SetDecodedTimeAsLocal sets decoded time.Time values to local timezone.
|
||||
func SetDecodedTimeAsLocal() {
|
||||
time.SetDecodedAsLocal(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user