You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jiatao Tao (JIRA)" <ji...@apache.org> on 2019/06/11 02:41:00 UTC
[jira] [Comment Edited] (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=16860489#comment-16860489 ]
Jiatao Tao edited comment on SPARK-27546 at 6/11/19 2:40 AM:
-------------------------------------------------------------
Hi [~dongjoon]
What I get is "ts", not the "Mon Dec 31 16:00:00 PST 2012".
```
jshell> new Date(1356998400000L).getTime
$1 ==> 1356998400000L
jshell> TimeZone.setDefault(TimeZone.getTimeZone("UTC"))
jshell> new Date(1356998400000L).getTime
$3 ==> 1356998400000L
```
Whatere the timezone I set, should not influence the ts I get.
was (Author: aron.tao):
Hi [~dongjoon]
What I get is "ts", not the "Mon Dec 31 16:00:00 PST 2012".
jshell> new Date(1356998400000L).getTime
$1 ==> 1356998400000L
jshell> TimeZone.setDefault(TimeZone.getTimeZone("UTC"))
jshell> new Date(1356998400000L).getTime
$3 ==> 1356998400000L
Whatere the timezone I set, should not influence the ts I get.
> 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