mirror of
https://github.com/mrusme/neonmodem.git
synced 2025-01-03 14:56:41 -05:00
Fixed timestamps
This commit is contained in:
parent
9c546bde39
commit
cb16c4cd60
@ -212,7 +212,7 @@ func (sys *System) CreatePost(p *post.Post) error {
|
|||||||
Title: p.Subject,
|
Title: p.Subject,
|
||||||
Raw: p.Body,
|
Raw: p.Body,
|
||||||
Category: categoryID,
|
Category: categoryID,
|
||||||
CreatedAt: strconv.FormatInt(time.Now().Unix(), 10),
|
CreatedAt: time.Now().Format(time.RFC3339Nano),
|
||||||
}
|
}
|
||||||
|
|
||||||
cp, err := sys.client.Posts.Create(context.Background(), &ap)
|
cp, err := sys.client.Posts.Create(context.Background(), &ap)
|
||||||
@ -239,7 +239,7 @@ func (sys *System) CreateReply(r *reply.Reply) error {
|
|||||||
Raw: r.Body,
|
Raw: r.Body,
|
||||||
TopicID: inReplyTo,
|
TopicID: inReplyTo,
|
||||||
ReplyToPostNumber: ID,
|
ReplyToPostNumber: ID,
|
||||||
CreatedAt: strconv.FormatInt(time.Now().Unix(), 10),
|
CreatedAt: time.Now().Format(time.RFC3339Nano),
|
||||||
}
|
}
|
||||||
|
|
||||||
cp, err := sys.client.Posts.Create(context.Background(), &ap)
|
cp, err := sys.client.Posts.Create(context.Background(), &ap)
|
||||||
|
Loading…
Reference in New Issue
Block a user