Commit dc722f02 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix convert date time

parent 3ed04d78
...@@ -3453,7 +3453,9 @@ CT_DateTime.prototype.toXml = function(writer, name) { ...@@ -3453,7 +3453,9 @@ CT_DateTime.prototype.toXml = function(writer, name) {
}; };
CT_DateTime.prototype.getCellValue = function (subtotal) { CT_DateTime.prototype.getCellValue = function (subtotal) {
var res = new AscCommonExcel.CCellValue(); var res = new AscCommonExcel.CCellValue();
var v = new Date(this.v).getExcelDateWithTime(); var d = new Date(this.v);
var v = new Date(Date.UTC(d.getYear(), d.getMonth(), d.getDay(), d.getHours(), d.getMinutes(), d.getSeconds(),
d.getMilliseconds())).getExcelDateWithTime();
if (subtotal) { if (subtotal) {
res.text = v + subtotal; res.text = v + subtotal;
res.type = AscCommon.CellValueType.String; res.type = AscCommon.CellValueType.String;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment