Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Jul 13, 2016
1 parent 0c4ba88 commit 401aa23
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type LogTime struct {
}

func (lt *LogTime) UnmarshalText(t []byte) error {
ti, err := time.Parse(timeFormat, string(t))
ti, err := time.ParseInLocation(timeFormat, string(t), time.UTC)
if err != nil {
return err
}
Expand All @@ -54,24 +54,14 @@ func ExampleUnmarshal() {
// sec: 63603932404,
// nsec: 0,
// loc: &time.Location{
// name: "Local",
// name: "",
// zone: {
// {name:"JCST", offset:32400, isDST:false},
// {name:"JDT", offset:36000, isDST:true},
// {name:"JST", offset:32400, isDST:false},
// {name:"", offset:32400, isDST:false},
// },
// tx: {
// {when:-1017824400, index:0x2, isstd:false, isutc:false},
// {when:-683794800, index:0x1, isstd:false, isutc:false},
// {when:-672393600, index:0x2, isstd:false, isutc:false},
// {when:-654764400, index:0x1, isstd:false, isutc:false},
// {when:-640944000, index:0x2, isstd:false, isutc:false},
// {when:-620290800, index:0x1, isstd:false, isutc:false},
// {when:-609494400, index:0x2, isstd:false, isutc:false},
// {when:-588841200, index:0x1, isstd:false, isutc:false},
// {when:-578044800, index:0x2, isstd:false, isutc:false},
// {when:-9223372036854775808, index:0x0, isstd:false, isutc:false},
// },
// cacheStart: -578044800,
// cacheStart: -9223372036854775808,
// cacheEnd: 9223372036854775807,
// cacheZone: &time.zone{(CYCLIC REFERENCE)},
// },
Expand Down

0 comments on commit 401aa23

Please sign in to comment.