【发布时间】:2016-05-13 09:28:04
【问题描述】:
val date = "01-10-1967"
val pattern = "dd-MM-yyyy"
val formatter = DateTimeFormat.forPattern(pattern)
formatter.parseMillis(date) // this line fails
最后一行失败:
Cannot parse "01-10-1967": Illegal instant due to time zone offset transition (America/Argentina/Buenos_Aires)
知道为什么吗?
(JodaTime 版本为 2.3)
【问题讨论】: