Github user davies commented on a diff in the pull request:
https://github.com/apache/spark/pull/6981#discussion_r34311128
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DatetimeFunctionsSuite.scala
---
@@ -34,4 +42,145 @@ class DatetimeFunctionsSuite extends SparkFunSuite with
ExpressionEvalHelper {
assert(math.abs(t1 - ct.getTime) < 5000)
}
+ val sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
+ val d = new Date(sdf.parse("2015-04-08 13:10:15").getTime)
+ val ts = new Timestamp(sdf.parse("2013-11-08 13:10:15").getTime)
+
+ testWithTimezone(TimeZone.getTimeZone("GMT-14:00"))
+ testWithTimezone(TimeZone.getTimeZone("GMT+04:30"))
+ testWithTimezone(TimeZone.getTimeZone("GMT+12:00"))
--- End diff --
It's good to test with different timezones, cool!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]