diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-05-27 10:55:57 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-05-27 10:55:57 -0700 |
| commit | 3c9b1dcdf40474396a3b035d548417b84a123164 (patch) | |
| tree | 08efd3a26e0bfe69c083c664ba4fd1eef0641358 /hotline/transaction_handlers.go | |
| parent | 61c272e101b6f0444c7b2a666b0b5e828ba6db03 (diff) | |
Simplify news article timestamping
Diffstat (limited to 'hotline/transaction_handlers.go')
| -rw-r--r-- | hotline/transaction_handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go index 5aa6984..2c5a930 100644 --- a/hotline/transaction_handlers.go +++ b/hotline/transaction_handlers.go @@ -1140,7 +1140,7 @@ func HandlePostNewsArt(cc *ClientConn, t *Transaction) (res []Transaction, err e newArt := NewsArtData{ Title: string(t.GetField(fieldNewsArtTitle).Data), Poster: string(cc.UserName), - Date: NewsDate(), + Date: toHotlineTime(time.Now()), PrevArt: []byte{0, 0, 0, 0}, NextArt: []byte{0, 0, 0, 0}, ParentArt: append([]byte{0, 0}, t.GetField(fieldNewsArtID).Data...), |