summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-05-05 14:40:28 +0800
committerRi Xu <xuri.me@gmail.com>2017-05-05 14:40:28 +0800
commit8fbab474443393b8b996487cf7ade300a72d2e07 (patch)
treebd863a7e6066ce62ecc01db110e508145057d3c9 /rows.go
parent7f30a6c9430476bcd5fc1662523ada0e95f60947 (diff)
- Formatted cell data support, fix issue #48;
- Function `SetCellValue()` support `time.Time` data type parameter, relate issue #49; - go doc and go test updated
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/rows.go b/rows.go
index 7e5ae5e..52a360c 100644
--- a/rows.go
+++ b/rows.go
@@ -141,10 +141,10 @@ func (xlsx *xlsxC) getValueFrom(f *File, d *xlsxSST) (string, error) {
}
return value, nil
}
- return d.SI[xlsxSI].T, nil
+ return f.formattedValue(xlsx.S, d.SI[xlsxSI].T), nil
case "str":
- return xlsx.V, nil
+ return f.formattedValue(xlsx.S, xlsx.V), nil
default:
- return xlsx.V, nil
+ return f.formattedValue(xlsx.S, xlsx.V), nil
}
}