Skip to content

Commit

Permalink
Templates now using RFC2822 for CreatedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
thrawn01 committed Jan 16, 2019
1 parent 558e270 commit 5eba740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ type Template struct {
Id string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
//CreatedAt RFC2822Time `json:"createdAt"`
CreatedAt string `json:"createdAt"`
CreatedAt RFC2822Time `json:"createdAt"`
Version TemplateVersion `json:"version,omitempty"`
}

Expand Down
3 changes: 1 addition & 2 deletions template_versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ type TemplateVersion struct {
Id string `json:"id"`
Template string `json:"template,omitempty"`
Engine TemplateEngine `json:"engine"`
CreatedAt string `json:"createdAt"`
//CreatedAt RFC2822Time `json:"createdAt"`
CreatedAt RFC2822Time `json:"createdAt"`
Comment string `json:"comment"`
Active bool `json:"active"`
}
Expand Down

0 comments on commit 5eba740

Please sign in to comment.