tokyis 9 lat temu
rodzic
commit
ae1551b912
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      cell.go

+ 2 - 2
cell.go

@@ -124,11 +124,11 @@ func TimeToExcelTime(t time.Time) float64 {
 
 
 // SetDate sets the value of a cell to a float.
 // SetDate sets the value of a cell to a float.
 func (c *Cell) SetDate(t time.Time) {
 func (c *Cell) SetDate(t time.Time) {
-	c.SetDateTimeWithFormat(float64(int64(timeToExcelTime(timeToUTCTime(t)))), builtInNumFmt[14])
+	c.SetDateTimeWithFormat(float64(int64(TimeToExcelTime(TimeToUTCTime(t)))), builtInNumFmt[14])
 }
 }
 
 
 func (c *Cell) SetDateTime(t time.Time) {
 func (c *Cell) SetDateTime(t time.Time) {
-	c.SetDateTimeWithFormat(timeToExcelTime(timeToUTCTime(t)), builtInNumFmt[22])
+	c.SetDateTimeWithFormat(TimeToExcelTime(TimeToUTCTime(t)), builtInNumFmt[22])
 }
 }
 
 
 func (c *Cell) SetDateTimeWithFormat(n float64, format string) {
 func (c *Cell) SetDateTimeWithFormat(n float64, format string) {