From 58f9287559b26ec44a9a68c4351efa88327be51d Mon Sep 17 00:00:00 2001 From: Alluuu <22728104+Alluuu@users.noreply.github.com> Date: Fri, 4 Jun 2021 18:06:58 +0300 Subject: This closes #409 Remove UTC timezone requirement from date.go (#853) According to issue #409 There is absolutely no reason for the timezone to be in UTC, and converting the local times to UTC while keeping values is hacky at least. Excel has no understanding of timezones, hence the user of this library should know what timezone their values are supposed to be, by following the timezone within their timeTime structs. --- date_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'date_test.go') diff --git a/date_test.go b/date_test.go index ecc96ba..38898b0 100644 --- a/date_test.go +++ b/date_test.go @@ -55,7 +55,7 @@ func TestTimeToExcelTime_Timezone(t *testing.T) { for i, test := range trueExpectedDateList { t.Run(fmt.Sprintf("TestData%d", i+1), func(t *testing.T) { _, err := timeToExcelTime(test.GoValue.In(location)) - assert.EqualError(t, err, ErrToExcelTime.Error()) + assert.NoError(t, err) }) } } -- cgit v1.2.1