Make lsl output times in localtime and fix tests - fixes #141
This commit is contained in:
parent
e9c915e6fe
commit
5f20ae707d
2 changed files with 3 additions and 2 deletions
|
@ -485,8 +485,9 @@ func TestLsLong(t *testing.T) {
|
|||
|
||||
timeFormat := "2006-01-02 15:04:05.000000000"
|
||||
precision := fremote.Precision()
|
||||
location := time.Now().Location()
|
||||
checkTime := func(m, filename string, expected time.Time) {
|
||||
modTime, err := time.Parse(timeFormat, m)
|
||||
modTime, err := time.ParseInLocation(timeFormat, m, location) // parse as localtime
|
||||
if err != nil {
|
||||
t.Errorf("Error parsing %q: %v", m, err)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue