Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for reproducible builds ``` Welcome to Scala 2.13.6 (OpenJDK 64-Bit Server VM, Java 1.8.0_292). Type in expressions for evaluation. Or try :help. scala> import java.text.SimpleDateFormat import java.text.SimpleDateFormat scala> import java.util.{Date, TimeZone} import java.util.{Date, TimeZone} scala> def date(zone: String) = { | val format = new SimpleDateFormat("yyyyMMdd") | format.setTimeZone(TimeZone.getTimeZone(zone)) | format.format(new Date(1626043918000L)) | } def date(zone: String): String scala> date("JST") val res0: String = 20210712 scala> date("UTC") val res1: String = 20210711 ```
- Loading branch information