mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Unstable. Further work on aggregations.
This commit is contained in:
@ -45,7 +45,6 @@ func (j *HeartbeatReqTime) UnmarshalJSON(b []byte) error {
|
||||
}
|
||||
|
||||
func (j *HeartbeatReqTime) Scan(value interface{}) error {
|
||||
fmt.Printf("%T", value)
|
||||
switch value.(type) {
|
||||
case int64:
|
||||
*j = HeartbeatReqTime(time.Unix(123456, 0))
|
||||
@ -67,3 +66,7 @@ func (j HeartbeatReqTime) String() string {
|
||||
t := time.Time(j)
|
||||
return t.Format("2006-01-02 15:04:05")
|
||||
}
|
||||
|
||||
func (j HeartbeatReqTime) Time() time.Time {
|
||||
return time.Time(j)
|
||||
}
|
||||
|
Reference in New Issue
Block a user