Skip to content

Commit

Permalink
Merge branch 'kshvakov-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbanzon committed Aug 25, 2016
2 parents 9e0fc0d + a043ade commit 369a1fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"time"
)

const iso8601date = "2006-01-02"

type Stat struct {
Event string `json:"event"`
TotalCount int `json:"total_count"`
Expand Down Expand Up @@ -32,7 +34,7 @@ func (m *MailgunImpl) GetStats(limit int, skip int, startDate *time.Time, event
}

if startDate != nil {
r.addParameter("start-date", startDate.Format(time.RFC3339))
r.addParameter("start-date", startDate.Format(iso8601date))
}

for _, e := range event {
Expand Down

0 comments on commit 369a1fa

Please sign in to comment.