aboutsummaryrefslogtreecommitdiff
path: root/streaming
diff options
context:
space:
mode:
authorWenchen Fan <wenchen@databricks.com>2015-11-16 08:58:40 -0800
committerDavies Liu <davies.liu@gmail.com>2015-11-16 08:58:40 -0800
commit06f1fdba6d1425afddfc1d45a20dbe9bede15e7a (patch)
tree0febbf696c1d3492fc29285e2438d3cb7696cb41 /streaming
parent0e79604aed116bdcb40e03553a2d103b5b1cdbae (diff)
downloadspark-06f1fdba6d1425afddfc1d45a20dbe9bede15e7a.tar.gz
spark-06f1fdba6d1425afddfc1d45a20dbe9bede15e7a.tar.bz2
spark-06f1fdba6d1425afddfc1d45a20dbe9bede15e7a.zip
[SPARK-11752] [SQL] fix timezone problem for DateTimeUtils.getSeconds
code snippet to reproduce it: ``` TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai")) val t = Timestamp.valueOf("1900-06-11 12:14:50.789") val us = fromJavaTimestamp(t) assert(getSeconds(us) === t.getSeconds) ``` it will be good to add a regression test for it, but the reproducing code need to change the default timezone, and even we change it back, the `lazy val defaultTimeZone` in `DataTimeUtils` is fixed. Author: Wenchen Fan <wenchen@databricks.com> Closes #9728 from cloud-fan/seconds.
Diffstat (limited to 'streaming')
0 files changed, 0 insertions, 0 deletions