Skip to content

Commit

Permalink
Format created at time with RFC3339 format
Browse files Browse the repository at this point in the history
  • Loading branch information
Flexicon committed Aug 15, 2023
1 parent 3b3eaec commit 14a12d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (c *Commit) MarshalJSON() ([]byte, error) {

// PrintCreatedAt formats the created at timestamp
func (c *Commit) PrintCreatedAt() string {
return c.CreatedAt.Format("2006/01/02 15:04 MST")
return c.CreatedAt.Format(time.RFC3339)
}

// SetupDB and return active connection
Expand Down

0 comments on commit 14a12d4

Please sign in to comment.