srowen commented on code in PR #44613:
URL: https://github.com/apache/spark/pull/44613#discussion_r1444280812
##########
core/src/main/scala/org/apache/spark/ui/UIUtils.scala:
##########
@@ -150,19 +147,19 @@ private[spark] object UIUtils extends Logging {
batchInterval: Long,
showYYYYMMSS: Boolean = true,
timezone: TimeZone = null): String = {
- val oldTimezones =
- (batchTimeFormat.get.getTimeZone,
batchTimeFormatWithMilliseconds.get.getTimeZone)
+ val oldTimezones = (batchTimeFormat.getZone,
batchTimeFormatWithMilliseconds.getZone)
if (timezone != null) {
- batchTimeFormat.get.setTimeZone(timezone)
- batchTimeFormatWithMilliseconds.get.setTimeZone(timezone)
+ val zoneId = timezone.toZoneId
+ batchTimeFormat.withZone(zoneId)
Review Comment:
This looks like a regression - see https://github.com/apache/spark/pull/44619
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]