Skip to content

Commit

Permalink
Force the format for the time
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jan 10, 2020
1 parent 78d1864 commit d4d1798
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type Campaign struct {
Clicks uint64 `json:"clicks,omitempty"`
Currency string `json:"currency,omitempty"`
Description string `json:"description,omitempty"`
ExpiresAt string `json:"expires_at,omitempty"`
ExpiresAt string `json:"expires_at,omitempty"` // time.RFC3339
FundingAddress string `json:"funding_address,omitempty"`
Goals []*Goal `json:"goals,omitempty"`
ID uint64 `json:"id,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion examples/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func main() {
PayPerClickRate: 0.01,
TargetURL: "https://offers.tonicpow.com",
Title: "TonicPow Offers",
ExpiresAt: expiresAt.String(),
ExpiresAt: expiresAt.Format(time.RFC3339),
}
if campaign, err = createCampaign(campaign, userSessionToken); err != nil {
os.Exit(1)
Expand Down

0 comments on commit d4d1798

Please sign in to comment.