summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-07-17 22:05:11 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-07-17 22:05:11 (GMT)
commit7c3acf4baafa5e86e8ad8e6bc7cc5beeedf4abbc (patch)
treefd409a909fc22aca24ba6018a0dba626bea520f9
parentc95de8bc02b6e6d57f7ae59dcaaa49eedde1fefc (diff)
returning ms based timestamp
-rw-r--r--src/helsinki.at/rhrdtime/rhrdtime.go2
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)