Browse Source

convert graphite epoch to ms

ryan 7 years ago
parent
commit
5ca972542b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/api/annotations.go

+ 1 - 1
pkg/api/annotations.go

@@ -156,7 +156,7 @@ func PostGraphiteAnnotation(c *m.ReqContext, cmd dtos.PostGraphiteAnnotationsCmd
 	item := annotations.Item{
 		OrgId:  c.OrgId,
 		UserId: c.UserId,
-		Epoch:  cmd.When,
+		Epoch:  cmd.When * 1000,
 		Text:   text,
 		Tags:   tagsArray,
 	}