Skip to content

Commit 1358dbe

Browse files
author
Dean Karn
authored
Add rfc3339nano go wont correct (#17)
* Add proper RFC3339Nano to replace the std library bugged implementation
1 parent 9bcb250 commit 1358dbe

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pkg
22

3-
![Project status](https://img.shields.io/badge/version-5.8.0-green.svg)
3+
![Project status](https://img.shields.io/badge/version-5.9.0-green.svg)
44
[![Build Status](https://travis-ci.org/go-playground/pkg.svg?branch=master)](https://travis-ci.org/go-playground/pkg)
55
[![Coverage Status](https://coveralls.io/repos/github/go-playground/pkg/badge.svg?branch=master)](https://coveralls.io/github/go-playground/pkg?branch=master)
66
[![GoDoc](https://godoc.org/github.com/go-playground/pkg?status.svg)](https://pkg.go.dev/mod/github.com/go-playground/pkg/v5)

time/time.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package timeext
2+
3+
const (
4+
// RFC3339Nano is a correct replacement to Go's current time.RFC3339Nano which is NOT sortable and
5+
// have no intention of fixing https://github.com/golang/go/issues/19635; this format fixes that.
6+
RFC3339Nano = "2006-01-02T15:04:05.000000000Z07:00"
7+
)

0 commit comments

Comments
 (0)