Github user ueshin commented on a diff in the pull request: https://github.com/apache/spark/pull/20559#discussion_r167389709 --- 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 -- Sure, I'll add some comments.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org