Skip to content

Commit

Permalink
chore: use time.RFC3339 for dates
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Nov 29, 2022
1 parent d21da9e commit 961b903
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.String())
return fmt.Sprintf("id=%s/created_at=%s", m.ID.String(), m.CreatedAt.Format(time.RFC3339))
}

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))
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))
}

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

0 comments on commit 961b903

Please sign in to comment.