fix rubydate

This commit is contained in:
Aaron Raddon 2014-05-21 08:01:57 -07:00
parent 85a0c6b618
commit 4c4c087855

View File

@ -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")