Skip to content

Commit 8c09354

Browse files
committed
Fix int64 to string conversion
1 parent 99566c8 commit 8c09354

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fcm.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"bytes"
55
"fmt"
6+
"strconv"
67
"strings"
78
tmpltext "text/template"
89
"time"
@@ -65,7 +66,7 @@ func NewDataMessage(topic, title, body string) *messaging.Message {
6566
data := map[string]string{
6667
"title": title,
6768
"body": body,
68-
"pageTime": string(unixMillisecondsUTC),
69+
"pageTime": strconv.FormatInt(unixMillisecondsUTC, 10),
6970
}
7071
return &messaging.Message{
7172
Data: data,

0 commit comments

Comments
 (0)