diff options
author | Alluuu <22728104+Alluuu@users.noreply.github.com> | 2021-06-04 18:06:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-04 23:06:58 +0800 |
commit | 58f9287559b26ec44a9a68c4351efa88327be51d (patch) | |
tree | c7caf1e287d7929faddc61529ef601ac2385833c /date.go | |
parent | 31d88a26241c32add01deff37ccc69cfe9efd03b (diff) |
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.
Diffstat (limited to 'date.go')
-rw-r--r-- | date.go | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -30,13 +30,6 @@ var ( func timeToExcelTime(t time.Time) (float64, error) { // TODO in future this should probably also handle date1904 and like TimeFromExcelTime - // Force user to explicit convet passed value to UTC time. - // Because for example 1900-01-01 00:00:00 +0300 MSK converts to 1900-01-01 00:00:00 +0230 LMT - // probably due to daylight saving. - if t.Location() != time.UTC { - return 0.0, ErrToExcelTime - } - if t.Before(excelMinTime1900) { return 0.0, nil } |