You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/06/09 21:02:00 UTC
[jira] [Commented] (SPARK-27546) Should repalce
DateTimeUtils#defaultTimeZoneuse with sessionLocalTimeZone
[ https://issues.apache.org/jira/browse/SPARK-27546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16859564#comment-16859564 ]
Dongjoon Hyun commented on SPARK-27546:
---------------------------------------
Hi, [~Aron.tao]. The given example looks irrelevant to Apache Spark because it's Java `Date`'s behavior before arriving Apache Spark.
{code}
jshell> new Date(1356998400000L)
$1 ==> Mon Dec 31 16:00:00 PST 2012
jshell> TimeZone.setDefault(TimeZone.getTimeZone("UTC"))
jshell> new Date(1356998400000L)
$3 ==> Tue Jan 01 00:00:00 UTC 2013
{code}
Whatever you do in Apache Spark, `new Date` give you the value from JVM's default Timezone, doesn't it?
> Should repalce DateTimeUtils#defaultTimeZoneuse with sessionLocalTimeZone
> -------------------------------------------------------------------------
>
> Key: SPARK-27546
> URL: https://issues.apache.org/jira/browse/SPARK-27546
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Jiatao Tao
> Priority: Minor
> Attachments: image-2019-04-23-08-10-00-475.png, image-2019-04-23-08-10-50-247.png
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org