GitHub user ueshin opened a pull request: https://github.com/apache/spark/pull/20559
[WIP][SPARK-23360][SQL][PYTHON] Get local timezone from environment vi pytz, or dateutil. ## What changes were proposed in this pull request? Currently we use `tzlocal()` to get Python local timezone, but it sometimes causes unexpected behavior. I changed the way to get Python local timezone to use pytz if the timezone is specified in environment variable, or timezone file via dateutil . ## How was this patch tested? Modified some tests and existing tests. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ueshin/apache-spark issues/SPARK-23360/master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20559.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #20559 ---- commit e87bd7639e546e24be1bf7a781ccd1571ad71964 Author: Takuya UESHIN <ueshin@...> Date: 2018-02-09T13:43:44Z Get local timezone from environment vi pytz, or dateutil. ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org