Skip to content

Commit a561831

Browse files
committed
Adds the ability to Append a zero valued time.Time
1 parent 4c8219e commit a561831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/column/date_helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
const secInDay = 24 * 60 * 60
2626

2727
func dateOverflow(min, max, v time.Time, format string) error {
28-
if v.Before(min) || v.After(max) {
28+
if !v.IsZero() && (v.Before(min) || v.After(max)) {
2929
return &DateOverflowError{
3030
Min: min,
3131
Max: max,

0 commit comments

Comments
 (0)