Github user 0x0FFF commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8555#discussion_r38461951
  
    --- Diff: python/pyspark/sql/types.py ---
    @@ -1290,8 +1290,9 @@ def can_convert(self, obj):
     
         def convert(self, obj, gateway_client):
             Timestamp = JavaClass("java.sql.Timestamp", gateway_client)
    -        return Timestamp(int(time.mktime(obj.timetuple())) * 1000 + 
obj.microsecond // 1000)
    -
    +        seconds = (calendar.timegm(obj.utctimetuple()) if obj.tzinfo
    +                   else time.mktime(obj.timetuple()))
    +        return Timestamp(int(seconds) * 1000 + obj.microsecond // 1000)
    --- End diff --
    
    Fixed in commit 2acd285


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to