Skip to content

Commit

Permalink
fix(notification): time format issue
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Oct 3, 2023
1 parent a1dd00d commit 22b6fc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/logic/notification/sentence_reviewed_notifiction.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package notification
import (
"context"

"github.com/gogf/gf/v2/os/gtime"

"github.com/gogf/gf/v2/errors/gerror"
"github.com/hitokoto-osc/reviewer/internal/dao"
"github.com/hitokoto-osc/reviewer/internal/model"
Expand Down Expand Up @@ -60,7 +62,7 @@ func (s *sNotification) SentenceReviewedNotification(
Creator: poll.Sentence.Creator,
CreatorUID: poll.Sentence.CreatorUID,
CreatedAt: poll.Sentence.CreatedAt,
OperatedAt: poll.UpdatedAt.Format("c"),
OperatedAt: (*gtime.Time)(poll.UpdatedAt).Format("c"),
ReviewerName: reviewerName,
ReviewerUID: int(reviewerUID),
Status: int(poll.Status),
Expand Down

0 comments on commit 22b6fc0

Please sign in to comment.