From f4ec2a675207b86f46c188c9ca5e35fb33ec30c7 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 3 Oct 2024 12:24:49 +0300 Subject: [PATCH] There are no problems with dates before 1970 --- tai64n.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/tai64n.go b/tai64n.go index 37e9f79..4760142 100644 --- a/tai64n.go +++ b/tai64n.go @@ -67,9 +67,6 @@ func ToTime(tai []byte) time.Time { default: panic("invalid tai size") } - if secs < 0 { - panic("dates < 1970-01-01 are not supported") - } return time.Unix(secs, nano) } -- 2.48.1