Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Use time.RFC3339 for parsing dates #511

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion results.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"net/http"
"reflect"
"time"

"github.com/mitchellh/mapstructure"
)
Expand Down Expand Up @@ -114,7 +115,7 @@ func DecodeHeader(from, to interface{}) error {
const RFC3339Milli = "2006-01-02T15:04:05.999999Z"

// Time format used in cloud orchestration
const STACK_TIME_FMT = "2006-01-02T15:04:05"
const STACK_TIME_FMT = time.RFC3339

/*
Link is an internal type to be used in packages of collection resources that are
Expand Down