We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7312e5e commit 3ebc411Copy full SHA for 3ebc411
internal/server/server.go
@@ -23,8 +23,6 @@ import (
23
"github.com/replicate/cog-runtime/internal/runner"
24
)
25
26
-const TimeLayout = "2006-01-02T15:04:05.999999-07:00"
27
-
28
// errAsyncPrediction is a sentinel error used to indicate that a prediction is being served asynchronously, it is not surfaced outside of server
29
var errAsyncPrediction = errors.New("async prediction")
30
@@ -458,5 +456,5 @@ func PredictionID() (string, error) {
458
456
}
459
457
460
func formatTime(t time.Time) string {
461
- return t.UTC().Format(TimeLayout)
+ return t.UTC().Format(time.RFC3339Nano)
462
0 commit comments