diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-07-17 22:05:11 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-07-17 22:05:11 (GMT) |
commit | 7c3acf4baafa5e86e8ad8e6bc7cc5beeedf4abbc (patch) | |
tree | fd409a909fc22aca24ba6018a0dba626bea520f9 /src/helsinki.at/rhrdtime | |
parent | c95de8bc02b6e6d57f7ae59dcaaa49eedde1fefc (diff) |
returning ms based timestamp
Diffstat (limited to 'src/helsinki.at/rhrdtime')
-rw-r--r-- | src/helsinki.at/rhrdtime/rhrdtime.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helsinki.at/rhrdtime/rhrdtime.go b/src/helsinki.at/rhrdtime/rhrdtime.go index 9590e4a..bae588a 100644 --- a/src/helsinki.at/rhrdtime/rhrdtime.go +++ b/src/helsinki.at/rhrdtime/rhrdtime.go @@ -73,7 +73,7 @@ func getTimeUpdate() []byte { sEpoch := now.Unix() + int64(offset) week := uint8(math.Floor(math.Mod((((float64(sEpoch)+259200)/604800)+2), 4)) + 1) - update := timeUpdate{now.Unix(), offset, week} + update := timeUpdate{(now.Unix() * 1000) + int64(now.Nanosecond()/1000000), offset, week} update_json, err := json.Marshal(update) if err != nil { fmt.Println(err) |