Add Null values and new measurements
This commit is contained in:
parent
c6e735950f
commit
c83feeb845
8 changed files with 331 additions and 11 deletions
|
@ -14,7 +14,15 @@ func (t *UnixTimestamp) UnmarshalText(b []byte) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*t = UnixTimestamp(time.Unix(i, 0))
|
||||
|
||||
var tt time.Time
|
||||
if len(b) > 10 {
|
||||
tt = time.Unix(0, i)
|
||||
} else {
|
||||
tt = time.Unix(i, 0)
|
||||
}
|
||||
|
||||
*t = UnixTimestamp(tt)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue