zeroshade commented on code in PR #39674:
URL: https://github.com/apache/arrow/pull/39674#discussion_r1457738855


##########
go/arrow/datatype_fixedwidth.go:
##########
@@ -88,11 +84,7 @@ func (d Date32) FormattedString() string {
 
 // Date64FromTime returns a Date64 value from a time object
 func Date64FromTime(t time.Time) Date64 {
-       if _, offset := t.Zone(); offset != 0 {
-               // properly account for timezone adjustments before we calculate
-               // the actual value by adjusting the time and converting to UTC
-               t = t.Add(time.Duration(offset) * time.Second).UTC()
-       }
+       t = t.In(time.UTC)

Review Comment:
   Good point,  you're absolutely right. I'll update and remove those lines



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to