Skip to content

Commit

Permalink
chore: use RFC3339Nano
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Nov 29, 2022
1 parent 961b903 commit 848c2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions courier/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ type Message struct {
}

func (m Message) PageToken() string {
return fmt.Sprintf("id=%s/created_at=%s", m.ID.String(), m.CreatedAt.Format(time.RFC3339))
return fmt.Sprintf("id=%s/created_at=%s", m.ID.String(), m.CreatedAt.Format(time.RFC3339Nano))
}

func (m Message) DefaultPageToken() string {
return fmt.Sprintf("id=%s/created_at=%s", uuid.Nil.String(), time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC).Format(time.RFC3339))
return fmt.Sprintf("id=%s/created_at=%s", uuid.Nil.String(), time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC).Format(time.RFC3339Nano))
}

func (m Message) TableName(ctx context.Context) string {
Expand Down

0 comments on commit 848c2ef

Please sign in to comment.