Skip to content

Commit

Permalink
rely on the standard library definition of RFC3339
Browse files Browse the repository at this point in the history
  • Loading branch information
lucat1 committed Jul 5, 2022
1 parent 34ca0cd commit 55a382c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions statik.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ const (
defaultSrc = "./"
defaultDst = "site"

fuzzyFileName = "fuzzy.json"
metadataFileName = "statik.json"
RFC3339TimeFormat = "2006-01-02T15:04:05Z"
fuzzyFileName = "fuzzy.json"
metadataFileName = "statik.json"
)

type HTMLPayload struct {
Expand Down Expand Up @@ -92,7 +91,7 @@ func (d *Directory) MarshalJSON() ([]byte, error) {
*DirectoryAlias
}{
URL: d.URL.String(),
ModTime: d.ModTime.Format(RFC3339TimeFormat),
ModTime: d.ModTime.Format(time.RFC3339),
DirectoryAlias: (*DirectoryAlias)(d),
})
}
Expand Down

0 comments on commit 55a382c

Please sign in to comment.