Kaynağa Gözat

use datetime format for Cell.SetDateTime

crvv 9 yıl önce
ebeveyn
işleme
1cfa76d0c3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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) {