Skip to content

Commit

Permalink
link to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Oct 19, 2024
1 parent 697621d commit 57d4049
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rfc2822.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (
"github.com/pkg/errors"
)

// RFC2822Time Mailgun uses RFC2822 format for timestamps everywhere ('Thu, 13 Oct 2011 18:02:00 GMT'), but
// RFC2822Time Mailgun uses RFC2822 format for timestamps everywhere ('Thu, 13 Oct 2011 18:02:00 +0000'), but
// by default Go's JSON package uses another format when decoding/encoding timestamps.
// https://documentation.mailgun.com/docs/mailgun/user-manual/get-started/#date-format
type RFC2822Time time.Time

func NewRFC2822Time(str string) (RFC2822Time, error) {
Expand Down

0 comments on commit 57d4049

Please sign in to comment.