- import java.util.TimeZone
spark.conf.set("spark.sql.session.timeZone", "Asia/Calcutta")
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Calcutta"))
Scala
import java.time
val s: String = time.LocalDateTime.now().toString
println(s)
sql
%sql
select current_timestamp