mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -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,
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user