fix jsontime + onlinestatus

This commit is contained in:
root 2016-05-23 14:20:58 +02:00
parent 9c66688e64
commit a49351cdf6
2 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import (
"time"
)
const TimeFormat = "2006-01-02T15:04:05"
const TimeFormat = "2006-01-02T15:04:05-0700"
type Time struct {
time time.Time

View File

@ -74,6 +74,10 @@ func (nodes *Nodes) Update(nodeID string, res *data.ResponseData) {
node.Lastseen = now
if node.Flags !=nil {
node.Flags.Online = true
}
// Update neighbours
if val := res.Neighbours; val != nil {
node.Neighbours = val