Skip to content

Commit

Permalink
Merge pull request #3 from Velocidex/time2
Browse files Browse the repository at this point in the history
Force time output in UTC always.
  • Loading branch information
scudette committed May 20, 2019
2 parents 59bac86 + c216c44 commit d3d2d63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion time.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ type UnixTimeStamp struct {
}

func (self *UnixTimeStamp) DebugString() string {
return self.MarshalText()
return self.String()
}

func (self *UnixTimeStamp) String() string {
result, _ := self.UTC().MarshalText()
return string(result)
}

func (self *PeProfile) UnixTimeStamp(reader io.ReaderAt, offset int64) *UnixTimeStamp {
Expand Down

0 comments on commit d3d2d63

Please sign in to comment.