mirror of
https://github.com/araddon/dateparse.git
synced 2024-11-10 11:51:54 +08:00
fix rubydate
This commit is contained in:
parent
85a0c6b618
commit
4c4c087855
@ -8,8 +8,6 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
var _ = time.April
|
||||
|
||||
/*
|
||||
ANSIC = "Mon Jan _2 15:04:05 2006" x
|
||||
UnixDate = "Mon Jan _2 15:04:05 MST 2006" x
|
||||
@ -73,7 +71,7 @@ func TestParse(t *testing.T) {
|
||||
ts, err = ParseAny("Mon Jan 02 15:04:05 -0700 2006")
|
||||
//u.Debug(fmt.Sprintf("%v", ts.In(time.UTC)), " ---- ", ts)
|
||||
// Are we SURE this is right time?
|
||||
assert.T(t, "2006-01-02 22:04:05 +0000 UTC" == fmt.Sprintf("%v", ts.In(time.UTC)))
|
||||
assert.T(t, "2006-01-02 15:04:05 -0700 -0700" == fmt.Sprintf("%v", ts))
|
||||
|
||||
// Wat? Go can't parse a date that it supplies a format for?
|
||||
// ts, err = ParseAny("Mon, 02 Jan 2006 15:04:05 -0700")
|
||||
|
Loading…
Reference in New Issue
Block a user