Skip to content

Commit 7dfc17b

Browse files
committed
Fixed local-timezone-brittle test where short-timezone form "EST" is ambiguous. Use -0500 instead. Fixed SPARK-15723.
1 parent 6dddb70 commit 7dfc17b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/test/scala/org/apache/spark/status/api/v1/SimpleDateParamSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SimpleDateParamSuite extends SparkFunSuite with Matchers {
2626

2727
test("date parsing") {
2828
new SimpleDateParam("2015-02-20T23:21:17.190GMT").timestamp should be (1424474477190L)
29-
new SimpleDateParam("2015-02-20T17:21:17.190EST").timestamp should be (1424470877190L)
29+
new SimpleDateParam("2015-02-20T17:21:17.190-0500").timestamp should be (1424470877190L) // don't use EST, it is ambiguous, see SPARK-15723
3030
new SimpleDateParam("2015-02-20").timestamp should be (1424390400000L) // GMT
3131
intercept[WebApplicationException] {
3232
new SimpleDateParam("invalid date")

0 commit comments

Comments
 (0)