timefix

package
v0.0.0-...-bfd875d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InverterTime

type InverterTime struct {
	time.Time
}

InterterTime defines a time.Time value

func (*InverterTime) UnmarshalJSON

func (m *InverterTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Marshaler interface At first it tries to use the RFC3339 format, but with the values returned from Kostal Inverter API it goes wrong, because the trailing "Z" is missing. This differs from the generated API documentation. So the fix is to add the "Z" character.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL