我有一个函数来计算时间和日期。它在 Chrome 中运行良好,但在我的 Firefox 中不起作用。
这是我的代码
@Preview
@Composable
PreviewHomeScreen() {
val devices = flow { emit(
listOf(Device(1,"Device Name 1"),Device(2,"Device Name 2"))
)}
HomeScreen(devices)
}
Chrome 中的输出
{ "batch_start_date": "2020-06-30T18:30:00.000Z","batch_end_date": "2021-09-29T18:30:00.000Z","batch_start_time": "2000-01-01T03:30:42.000Z","batch_end_time": "2000-01-01T12:30:52.000Z" }
Firefox 中的输出
{ "batch_start_date": "2020-06-30T18:30:00.000Z",“batch_start_time”:无效日期, “batch_end_time”:无效日期 }
我不知道发生了什么。
请帮助