Github user icexelloss commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20559#discussion_r167246316
  
    --- Diff: python/pyspark/sql/types.py ---
    @@ -1709,6 +1709,15 @@ def _check_dataframe_convert_date(pdf, schema):
         return pdf
     
     
    +def _get_local_timezone():
    +    """ Get local timezone from environment vi pytz, or dateutil. """
    +    from pyspark.sql.utils import require_minimum_pandas_version
    +    require_minimum_pandas_version()
    +
    +    import os
    +    return os.environ.get('TZ', 'dateutil/:')
    --- End diff --
    
    I don't really understand how does "dateutil/:" work, can you maybe add 
some comments for that?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to