1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-06-30 06:45:24 +00:00

Fixed timestamps

This commit is contained in:
マリウス 2023-01-02 13:23:22 -05:00
parent 9c546bde39
commit cb16c4cd60
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F

View File

@ -212,7 +212,7 @@ func (sys *System) CreatePost(p *post.Post) error {
Title: p.Subject,
Raw: p.Body,
Category: categoryID,
CreatedAt: strconv.FormatInt(time.Now().Unix(), 10),
CreatedAt: time.Now().Format(time.RFC3339Nano),
}
cp, err := sys.client.Posts.Create(context.Background(), &ap)
@ -239,7 +239,7 @@ func (sys *System) CreateReply(r *reply.Reply) error {
Raw: r.Body,
TopicID: inReplyTo,
ReplyToPostNumber: ID,
CreatedAt: strconv.FormatInt(time.Now().Unix(), 10),
CreatedAt: time.Now().Format(time.RFC3339Nano),
}
cp, err := sys.client.Posts.Create(context.Background(), &ap)