Bläddra i källkod

Merge pull request #232 from crvv/master

use datetime format for Cell.SetDateTime
Geoffrey J. Teale 9 år sedan
förälder
incheckning
b23e4ffe6d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      cell.go

+ 1 - 1
cell.go

@@ -123,7 +123,7 @@ func (c *Cell) SetDate(t time.Time) {
 }
 }
 
 
 func (c *Cell) SetDateTime(t time.Time) {
 func (c *Cell) SetDateTime(t time.Time) {
-	c.SetDateTimeWithFormat(timeToExcelTime(timeToUTCTime(t)), builtInNumFmt[14])
+	c.SetDateTimeWithFormat(timeToExcelTime(timeToUTCTime(t)), builtInNumFmt[22])
 }
 }
 
 
 func (c *Cell) SetDateTimeWithFormat(n float64, format string) {
 func (c *Cell) SetDateTimeWithFormat(n float64, format string) {